Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,166
    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!

  3. #3
    Just 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.

Posting Permissions

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