Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2006
How to replace a device driver with a loadable library?
Although I have not a direct answer to this, I can guess that it is not possible.
If you try to merge library code into the kernel you can't cause libraries are executed in userspace, so they are prepared to have a big stack (even MB's of stack) But the kernel's stack is fixed and not big. So I think that if you'd try to do that your kernel would be broken.
In addition it is possible that the library needs some other libraries/binaries from userland so you'd have even more problems.
If you mean to write a userland program (library or binary application) to manage a device I think it is not possible without other facility to help. For example, you can write a filesystem driver in userspace but using the functions provided by FUSE.
I don't know if there is any similar framework for your purposes.
- Join Date
- Jun 2006
If the loadable library is not possible, What is mean by API?
For example, Instead of writing device driver for USB device,We can access the USB device from user space by Libusb API. Please clear my doubt...
AFAIK, yes, you can use libusb to access that kind of devices.