From owner-freebsd-hackers Tue Jun 4 7:28:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21105.mail.yahoo.com (web21105.mail.yahoo.com [216.136.227.107]) by hub.freebsd.org (Postfix) with SMTP id E187537B405 for ; Tue, 4 Jun 2002 07:28:36 -0700 (PDT) Message-ID: <20020604142836.26297.qmail@web21105.mail.yahoo.com> Received: from [62.254.0.5] by web21105.mail.yahoo.com via HTTP; Tue, 04 Jun 2002 07:28:36 PDT Date: Tue, 4 Jun 2002 07:28:36 -0700 (PDT) From: Hiten Pandya Reply-To: hiten@uk.FreeBSD.org Subject: Re: Newbie needs help!!!!! To: Ferruccio Vitale , O Senhor , freebsd-arch@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <3CFCC261.EBDDF0EB@cs.tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Ferruccio Vitale wrote: > Ok, I've already read those pages, real useful to start. > Now I've my module, which creates dynamic sysctl and so on; now I need to > monitor the existence of another process and I tough at kqueue/kevent > method. But are these functions for userland process, aren't they? How > could I do the same in kernel land? Try the kevent(2) manual page. It has some good amount of information. I am including some more pointers for you. Hope they are useful. Thanks. http://www.madison-gurkha.com/publications/kqueue/ http://people.freebsd.org/~jlemon/kqueue_slides/ As a bonus, and example of how use the kqueue(2)/kevent(2) API: http://www.monkeys.com/freeware/kqueue-echo.c Have fun. Hope this helps. Regards. -- Hiten __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message