From owner-freebsd-questions@FreeBSD.ORG Thu Nov 27 20:05:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A92A71065678 for ; Thu, 27 Nov 2008 20:05:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6F00C8FC1B for ; Thu, 27 Nov 2008 20:05:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-24-200.dynamic.qsc.de [92.196.24.200]) by mx02.qsc.de (Postfix) with ESMTP id A68F516C0109; Thu, 27 Nov 2008 21:05:01 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id mARK50Bk001740; Thu, 27 Nov 2008 21:05:00 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 27 Nov 2008 21:05:00 +0100 From: Polytropon To: Mel Message-Id: <20081127210500.7a792dfe.freebsd@edvax.de> In-Reply-To: <200811262014.02717.fbsd.questions@rachie.is-a-geek.net> References: <903701.74203.qm@web57001.mail.re3.yahoo.com> <200811262014.02717.fbsd.questions@rachie.is-a-geek.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: unga888@yahoo.com, freebsd-questions@freebsd.org Subject: Re: getpriority(2) and rtprio(2) implementation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2008 20:05:03 -0000 On Wed, 26 Nov 2008 20:14:02 +0100, Mel 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, ...