Re: __make_request question

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

 



On Mon, Jan 21, 2002 at 01:12:58PM -0500, Narasimhamurthy Giridhar wrote:
 > In __make_request(), there is a statement :
 > el_ret = elevator->elevator_merge_fn(....);
 > Where is the definition of this elevator_merge_fn ?

 It's a function ptr in the elevator structure.
 include/linux/elevator.h see elevator_s structure.

 > How does it work ?

 When the elevator structure is set up, a ptr is stored to
 a function such as elevator_linus
 See blk_init_queue() in ll_rw_block.c


-- 
Always code as if the guy who ends up maintaining your code will be
violent psychopath who knows where you live. -- John F. Woods
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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