def __init__(self, options): self.options = options self.connection = Connection(NETLINK_GENERIC) controller = Controller(self.connection) self.family_id = controller.get_family_id('TASKSTATS')
class TaskStatHelper(object): connection = Connection(NETLINK_GENERIC) controller = Controller(connection) family_id = controller.get_family_id('TASKSTATS')