|
In the example below, the header file is chardev.h and the program which uses it is ioctl.c.
|
|
In the example below, the header file is chardev.h and the program which uses it is ioctl.c.
|
|
If you want to use ioctls in your own kernel modules, it is best to receive an official ioctl assignment, so if you accidentally get somebody else's ioctls, or if they get yours, you'll know something is wrong.
|
|
If you want to use ioctls in your own kernel modules, it is best to receive an official ioctl assignment, so if you accidentally get somebody else's ioctls, or if they get yours, you'll know something is wrong.
|