LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-09-2009, 10:26 AM   #1
cjlinux
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.
Thanks.
 
  


Reply

Tags
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 12:45 PM
what is a major number and a minor number ? Menestrel Linux - Newbie 2 10-11-2004 07: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 09:36 AM
major/minor number zyan Linux - Newbie 2 06-25-2001 06:57 PM
major /minor number zyan Linux - General 0 06-22-2001 02:26 AM


All times are GMT -5. The time now is 02:36 AM.

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