mirror of
https://github.com/takeshixx/redstar-tools
synced 2025-07-17 20:43:21 +00:00
Added files
This commit is contained in:
11
rtscan/resctl.py
Normal file
11
rtscan/resctl.py
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python2
|
||||
from fcntl import ioctl
|
||||
|
||||
filename = '/dev/res'
|
||||
fd = open(filename, 'wb')
|
||||
ret = ioctl(fd, 29187, 0)
|
||||
|
||||
if ret is not 0:
|
||||
print('Error')
|
||||
|
||||
fd.close()
|
Reference in New Issue
Block a user