LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2007, 06:30 AM   #1
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Rep: Reputation: 41
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!
 
Old 04-20-2007, 09:49 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
In kernelspace, you use “sys_rt_sigprocmask”.
 
Old 04-21-2007, 04:32 AM   #3
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
Ok thanks! what do I have to include to use this? And what are the arguments?
 
Old 04-21-2007, 10:31 AM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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.
 
Old 04-22-2007, 12:50 AM   #5
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
Ok thanks, I am sorry I didn't notice that there was a link. I thought it was just a different font color. Thanks!
 
Old 04-22-2007, 09:38 PM   #6
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 289

Original Poster
Rep: Reputation: 41
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
function calls inside a function manas_sem Programming 2 02-28-2007 01:27 AM
How do I run a function within a function arguement? C/C++ RHLinuxGUY Programming 12 05-19-2006 02:29 PM
what are the Hexadecimal function and ASCII function in Perl Bassam Programming 1 06-03-2004 01:44 AM
A main can be changed by a function local without passing anything to the function? ananthbv Programming 10 05-04-2004 01:31 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration