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/