rdma.go 604 B

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