Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-09-2009, 11:26 AM   #1
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Question How to get minor number in block driver transfer request

I am porting a block driver from 2.4 to 2.6 linux. I need to know the minor number in the transfer request. The transfer request is only passed the request_queue_t structure and I do not see how to get the device number, specifically the minor number form anything in that structure.
How do I determine the minor number in a block driver transfer function?
( In 2.4 it was done with a CURRENT_DEV macro which access a field that is no longer in the request_queue_t structure.

This is my first post, so let me know if I'm missing some posting edicate here.


block, driver, minor, number

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Minor Number ohovus Linux - Newbie 1 11-22-2005 01:45 PM
what is a major number and a minor number ? Menestrel Linux - Newbie 2 10-11-2004 08:53 AM
why there is a need for minor number and major number for monitor/keyboard in pc? tripathi Solaris / OpenSolaris 1 11-07-2003 10:36 AM
major/minor number zyan Linux - Newbie 2 06-25-2001 07:57 PM
major /minor number zyan Linux - General 0 06-22-2001 03:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration