File: kobject_uevent.py

package info (click to toggle)
pyroute2 0.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,700 kB
  • sloc: python: 50,245; makefile: 280; javascript: 183; ansic: 81; sh: 44; awk: 17
file content (7 lines) | stat: -rw-r--r-- 127 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
from pprint import pprint
from pyroute2 import UeventSocket

kus = UeventSocket()
kus.bind()
while True:
    pprint(kus.get())