gendisk list, request queue of gendisks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am playing with block devices but I need help.

[1]
I want to override the do_hd_requrst() of a user-specified 
hard disk. For the work, I want to iterate in 'gendisk's 
without modifying the current source. (ex: hd.c) 
'struct gendisk' is static variables and I have no idea 
to access it.

How can I override the request function of a gendisk?

[2]
Is it right that the Linux use only one request queue for
all the IDE/ATA-based block devices? 
I looked hd_init() in drivers/ide/lagacy/hd.c and found 
that a single request queue, hd_queue is used for all the
devices. Am I right?

-- 
Seongsu's personal blog - http://www.senux.com/
Coding is easy; All you do is sit staring at a
terminal until the drops of blood form on your
forehead.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux