Thursday 15 January 2015

Is there a way to ensure that a kernel module runs in a specific process context? -



Is there a way to ensure that a kernel module runs in a specific process context? -

basically, how can create sure in module, specific process current. i've looked @ kick_process, i'm not sure how have module execute in context of process 1 time kicking kernel mode.

i found related question, has no replies. believe reply question help asker well.

note: aware if want task_struct of process, can up. i'm interested in running in specific context since want phone call functions reference current.

best way have found in context of particular process in kernel, sleep in process context(wait_* family of functions) , wake thread , whatever needs done in context. ofcourse mean have have application phone call kernel via ioctl or , sleep on thread , wake whenever need something. seems used , popular mechanism.

process linux-kernel kernel-module

No comments:

Post a Comment