Quote:
Originally Posted by
blair15
thank u so much for replying..
i have a few doubts--
1. where should i call these functions(device_read, device_open,..) in user or kernel space module ? or are these invoked automatically when corresponding action is performed ??
They are invoked automatically when the corresponding userspace action happens. That's why you have to pile them all into a structure, so the kernel can load them.
The userspace
ioctl function. It can do a variety of things, often a way to configure a device. See
man ioctl.
Quote:
also why in device_write function the operation isn't supported ??
To keep the example simple.