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

Re: kernel debugging




On Mon, 6 Nov 2000, Mevorach, Assaf wrote:

> in the project we are doing we need to be notified about context switch of
> processes,
> something like when context switch occurs a handle function that I give
> pointer to, will be called.

i assume you mean you want a callback inside a kernel module to be
invoked? not something to be done in user mode, right? cause that's
internally impossible...

> I need to do it without any kernel changes. because it shouldbe part of a
> shelf product that will work with any standard kernel version
> if someone knows a better place to ask  this question it will be considered
> as good answer too :)

since we established that you do that in a kernel module, the the proper
method is by placing the function pointer as a task, and place this task
in the 'tq_scheduler' task queue.

for more info - buy "linux device drivers", alessandro rubini, published
by O'reilly. or write back.

p.s. next time, if you 'reply' to a letter just to get the address of the
mailing list, at least erase the copy of the original letter....

guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy



=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il