LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where is the rt_sigprocmask() function? (https://www.linuxquestions.org/questions/linux-newbie-8/where-is-the-rt_sigprocmask-function-547557/)

archieval 04-20-2007 06:30 AM

Where is the rt_sigprocmask() function?
 
I grepped the kernel source codes of Vine Linux 2.6.10 and I did not find the function rt_sigprocmask(). I would want to use this for unblocking real-time signals in a certain kernel process because it seems that the sigprocmask() is not working. Can you please tell me where can I find this or what to include in order to use this? Thanks!

osor 04-20-2007 09:49 AM

In kernelspace, you use “sys_rt_sigprocmask”.

archieval 04-21-2007 04:32 AM

Ok thanks! what do I have to include to use this? And what are the arguments?

osor 04-21-2007 10:31 AM

Quote:

Originally Posted by archieval
Ok thanks! what do I have to include to use this? And what are the arguments?

Um…

If you read the link I gave before, you would see that the function prototype is in linux/syscalls.h. So you do an “#include <linux/syscalls.h>” to use this. For the arguments see here again.

archieval 04-22-2007 12:50 AM

Ok thanks, I am sorry I didn't notice that there was a link. I thought it was just a different font color. Thanks! :)

archieval 04-22-2007 09:38 PM

I still can't use sys_rt_sigprocmask. Yes it is recognize by the compiler when I included linux/syscalls.h, because when I try to put wrong arguments, it givess an error. But when I load the module to the kernel, it says undefined symbol 'sys_rt_sigprocmask'. Also I noticed that the two arguments are supposed to be user space variables (because of the __user). So this means that I still need to do some copy_from_user routines just to get the values for these arguments from the user space? Thanks! :)


All times are GMT -5. The time now is 05:43 PM.