Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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?


  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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 et al.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Thanks for quick reply... rubberman. One more doubt
    1. How to test Linux kernel APIs from user space?

    Thanks in advance.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts