MCPcopy Create free account
hub / github.com/mininet/mininet / cgroupGet

Method cgroupGet

mininet/node.py:727–731  ·  view source on GitHub ↗

Return value of cgroup parameter

( self, param, resource='cpu' )

Source from the content-addressed store, hash-verified

725 return nvalue
726
727 def cgroupGet( self, param, resource='cpu' ):
728 "Return value of cgroup parameter"
729 pname = '%s.%s' % ( resource, param )
730 cmd = 'cgget -n -r %s /%s' % ( pname, self.name )
731 return quietRun( cmd )[len(pname)+1:].strip()
732
733 def cgroupDel( self ):
734 "Clean up our cgroup"

Callers 2

cgroupSetMethod · 0.95
popenMethod · 0.95

Calls 1

quietRunFunction · 0.90

Tested by

no test coverage detected