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

Re: Using System Calls from kernel space



I believe the only problem with that is that sys_sched_setscheduler() expects the struct sched_param pointer to reside in user-space memory. Therefore, when do_sched_setscheduler calls copy_from_user() to trasnfer the contents to a kernel-space structure, it will fail.

Elad

endeavor john wrote:

Hi All ,
I wanted to use a system call from kernel module to change the priority of the process using sys_sched_setscheduler from kernel space after using get_fs by modifying the |addr_limit| of the task to KERNEL_DS using set_fs and get_fs apis.
I wanted to what will be the disadvantage in using the System Calls from kernel space if it not any file system call.
Thanks and Regards,
John Endeavour




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/