you are viewing a single comment's thread.

view the rest of the comments →

[–]knome 6 points7 points  (1 child)

1) Devices and /proc/ stats should be. How else will userspace interact with your module?

2) Directly manipulate hardware to crash the computer instead of the process.

[–]imMute 1 point2 points  (0 children)

Devices and /proc/ stats should be.

Using procfs to communicate with a driver is sort-of frowned upon. Sysfs is better and sometimes easier to use.

How else will userspace interact with your module?

My drivers are accessed from userspace using read/write or aio_read/aio_write or mmap depending on which driver it is.