1
0
mirror of https://github.com/takeshixx/redstar-tools synced 2025-07-17 20:43:21 +00:00
Files
redstar-tools/rtscan/resctl.py
2015-11-27 15:31:09 +01:00

12 lines
171 B
Python

#!/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()