0

In windows we create a function in a driver and we can call it from the application using dll as the middle man. What happens in linux? How can we create a custom function (ioctl) for example and call/ use it from the host application?

Any suggestions, insights, examples, links would be great.

Linger
  • 14,942
  • 23
  • 52
  • 79
amanda
  • 394
  • 1
  • 9

2 Answers2

1

this blog post seems to have a nice run-through of writing a device driver in general. ioctl is not specifically mentioned in that post, but the post itself points to the public availability of a book "Linux Device Drivers, 3rd edition", which contains a chapter on ioctl usage as well.

Juha Laiho
  • 596
  • 2
  • 8
1

The header files are sufficient for making a driver's function visible to application

amanda
  • 394
  • 1
  • 9