Find the answer to your Linux question:
Results 1 to 2 of 2
I am attempting to accomplish the following goal: Generate list of all block devices so that I may be able to traverse them for specific drive labels. Is there a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Location
    Chicago, IL
    Posts
    46

    Question on existence of device driver routine...


    I am attempting to accomplish the following goal: Generate list of all block devices so that I may be able to traverse them for specific drive labels.

    Is there a clean routine, or proposed method of being able to (within my device driver), generate a list of all block devices? I do not want any user interaction outside of the insertion of the module.

    Thanks in advance.

    Petros Koutoupis

  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,167
    See if you can find what you need here: Linux Device Drivers, Third Edition [LWN.net]
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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