Pointer to ide_drive_t

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

 



Hi,

I'm trying to execute hdparm like functions in the kernel. Therefore, I'm
using ide_wait_cmd(). However, in  ide_wait_cmd(ide_drive_t * drive,...),
 I can't seem to find where and when this structure is
declared/instantied. I've tried tracing the calling procedure and looking
through the kernel cross reference site at fxr.watson.org to find out
this information, to no avail.

My current hack (extremely ugly) is  that I've declared a global " struct
ide_drive_t * disk_pointer".  Then on the first call to
ide_do_rw_disk(ide_drive_t *drive), I just do a "disk_pointer = drive".
This works  because my ide_wait _cmd call always occurs after  the first
ide_do_rw_disk call.

Does anyone have a suggestion as to when/where ide_drive_t structure is
first instantiated?

Thanks,
Tim

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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