Results 1 to 3 of 3
Hi All,
I have some doubts regarding how to test file operations in linux module.
for examples:
Inside my linux device driver module I have
1. probe(), open(), read(), write(), ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-14-2010 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 7
How to test file operations in Linux module
Hi All,
I have some doubts regarding how to test file operations in linux module.
for examples:
Inside my linux device driver module I have
1. probe(), open(), read(), write(), ioctl() etc functions. how to test it whether they are working properly.
Is there particular tools to test each functions or do we need to write user applications to test?
regards
soibam
- 09-14-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,144
You can emit diagnostic messages with the printk() function. You might want to download the Linux Device Drivers, 3rd Edition from O'Reilly. It is available for free download, or you can purchase it from Amazon.com et al.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 09-15-2010 #3Just Joined!
- Join Date
- Nov 2006
- Posts
- 7
Thanks for quick reply... rubberman. One more doubt
1. How to test Linux kernel APIs from user space?
Thanks in advance.


Reply With Quote
