...
1 package fs
2
3 import (
4 "github.com/opencontainers/runc/libcontainer/cgroups"
5 "github.com/opencontainers/runc/libcontainer/cgroups/fscommon"
6 "github.com/opencontainers/runc/libcontainer/configs"
7 )
8
9 type RdmaGroup struct{}
10
11 func (s *RdmaGroup) Name() string {
12 return "rdma"
13 }
14
15 func (s *RdmaGroup) Apply(path string, _ *configs.Resources, pid int) error {
16 return apply(path, pid)
17 }
18
19 func (s *RdmaGroup) Set(path string, r *configs.Resources) error {
20 return fscommon.RdmaSet(path, r)
21 }
22
23 func (s *RdmaGroup) GetStats(path string, stats *cgroups.Stats) error {
24 return fscommon.RdmaGetStats(path, stats)
25 }
26
View as plain text