Accessing a kernel module function from kernel scheduler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Accessing a kernel module function from kernel scheduler
- From: "David Embid" <davidembid@xxxxxxxxx>
- Date: Fri, 29 Feb 2008 08:29:03 +0100
Hi,
i have been developing a little module to monitoring the use of CPU for some processes. For this, I need to handle the moment when the scheduler switch the processes. My problem is that I don't know how can I access the handling function (contained on my kernel module) from the kernel scheduler (sched.c). I have tried with a function callback. My module overwrite a function pointer used by the kernel to acces the handler when the module is loaded. This solution seems to work properly and the function is called every switch made by the scheduler. The problem is that the variables used on the function have different memory direction when the function is called by the callback on the kernel and the direction when the variable is used on other function in the module.
Can someone give me some advice?
Thanks a lot
[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]