Hi PyPpl,<div>For my current project I have a kernel device driver and a user-space application. This user-space application is already provided to me, and written in python. I have to extend this application with some addition features, which involves communicating with kernel device driver through ioctl() interface. </div>
<div>I am fairly new with Python and not able to grok how to provide "op" in ioctl syntax - fcntl.ioctl (fd, op[, arg[, mutate_flag]]). Operations supported by device driver, through ioctl, are of the form: IOCTL_SET_MSG  _IOR(MAGIC_NUMBER, 0, char*).</div>
<div>It'd be great if some help can be provided about how to "encode" these operations in python to implement the desired functionality.</div><div><br></div><div>Regards</div><div>Nitish</div><meta http-equiv="content-type" content="text/html; charset=utf-8">