Re: getpriority(2) and rtprio(2) implementation
On Wed, 26 Nov 2008 20:14:02 +0100, Mel <[EMAIL PROTECTED]> wrote: > For future ref: > > find /usr/src/sys -name '*.c' -exec grep kern_$name_of_syscall {} + > > will catch 99% of the cases. I did check with the Midnight Commander's Meta-? (find): Search from /usr/src in *.c containing "getpriority", refined "getpriority(int" to get the function's prototype and implementation. I'm a lazy guy. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: getpriority(2) and rtprio(2) implementation
On Wednesday 26 November 2008 05:50:21 Unga wrote: > I need to study the implementation of getpriority(2) and rtprio(2) system > calls. Appreciate if somebody could point me to where these system calls > are implemented in FreeBSD source tree, that is, in which file/s. For future ref: find /usr/src/sys -name '*.c' -exec grep kern_$name_of_syscall {} + will catch 99% of the cases. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: getpriority(2) and rtprio(2) implementation
--- On Wed, 11/26/08, Polytropon <[EMAIL PROTECTED]> wrote: > From: Polytropon <[EMAIL PROTECTED]> > Subject: Re: getpriority(2) and rtprio(2) implementation > To: [EMAIL PROTECTED] > Cc: freebsd-questions@freebsd.org > Date: Wednesday, November 26, 2008, 2:41 PM > On Tue, 25 Nov 2008 20:50:21 -0800 (PST), Unga > <[EMAIL PROTECTED]> wrote: > > Hi all > > > > I need to study the implementation of getpriority(2) > and > > rtprio(2) system calls. Appreciate if somebody could > point > > me to where these system calls are implemented in > FreeBSD > > source tree, that is, in which file/s. > > getpriority() in /usr/src/sys/kern/kern_resource.c lines 88 > cont. > rtprio() should be around there, too, > /usr/src/sys/kern/syscalls.master > > I hope this is what you've been asking for. :-) > Yes, it is. Thank you very much. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: getpriority(2) and rtprio(2) implementation
On Tue, 25 Nov 2008 20:50:21 -0800 (PST), Unga <[EMAIL PROTECTED]> wrote: > Hi all > > I need to study the implementation of getpriority(2) and > rtprio(2) system calls. Appreciate if somebody could point > me to where these system calls are implemented in FreeBSD > source tree, that is, in which file/s. getpriority() in /usr/src/sys/kern/kern_resource.c lines 88 cont. rtprio() should be around there, too, /usr/src/sys/kern/syscalls.master I hope this is what you've been asking for. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"