示例#1
0
class DQuotSocket(GenericNetlinkSocket):
    def __init__(self):
        GenericNetlinkSocket.__init__(self)
        self.marshal = MarshalDQuot()
        if kernel[0] <= 2:
            self.bind(groups=0xffffff)
        else:
            self.bind()
        for group in self.mcast_groups:
            self.add_membership(group)

    def bind(self, groups=0, async=False):
        GenericNetlinkSocket.bind(self, 'VFS_DQUOT', dquotmsg,
                                  groups, None)
示例#2
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(self, 'nl80211', nl80211cmd, groups, None,
                               **kwarg)
示例#3
0
 def bind(self):
     GenericNetlinkSocket.bind(self, 'TASKSTATS', taskstatsmsg)
 def bind(self):
     GenericNetlinkSocket.bind(self, 'TASKSTATS', taskstatsmsg)
示例#5
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(self, 'devlink', devlinkcmd, groups, None,
                               **kwarg)
示例#6
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(self,
                               self.genl_family,
                               self.marshal_class.msg_map[0],
                               groups, None, **kwarg)
示例#7
0
 def __init__(self, *args, **kwargs):
   GenericNetlinkSocket.__init__(self, *args, **kwargs)
   GenericNetlinkSocket.bind(self, WG_GENL_NAME, wgmsg, *args, **kwargs)
示例#8
0
 def bind(self, groups=0, **kwarg):
     GenericNetlinkSocket.bind(self, 'nl80211', nl80211cmd,
                               groups, None, **kwarg)