But this is the way that I can do the thing I want to do... Is there no way to get around this problem... I just want to see how does the I/O operations perform if I have a RR scheduling for the I/O requests than use the existing elevator algorithm. What I mean to say is I want to schedule the I/O requests based on processes and not on the sector numbers of the I/O requests... Its part of the project .... Does anyone has any idea of doing this without intercepting system calls... thanks, raghu On Fri, 22 Nov 2002, Seth Arnold wrote: > On Fri, Nov 22, 2002 at 08:19:00PM -0500, Raghu R. Arur wrote: > > I am intercepting the sys_read system call using this way ... > > [...] > > > But when i do rmmod of this module it prints Everything is OK but after a > > few seconds the kernel hangs and I cannot type anything. > > You've just discovered why replacing systemcalls is so highly frowned > upon. > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/