From owner-freebsd-questions Mon May 28 16:39:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id B1D0337B422 for ; Mon, 28 May 2001 16:39:33 -0700 (PDT) (envelope-from mikko@dynas.se) Received: (qmail 57584 invoked from network); 28 May 2001 23:39:32 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by 172.16.1.1 with SMTP; 28 May 2001 23:39:32 -0000 Received: (qmail 1725 invoked from network); 28 May 2001 23:39:00 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 28 May 2001 23:39:00 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.3/8.11.1) id f4SNdUG84515; Mon, 28 May 2001 16:39:30 -0700 (PDT) (envelope-from mikko) Date: Mon, 28 May 2001 16:39:30 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200105282339.f4SNdUG84515@explorer.rsa.com> To: lioux@uol.com.br Cc: questions@freebsd.org Subject: Re: How to define "struct rq"? Newsgroups: local.freebsd.questions References: <20010528141144.A6291@Fedaykin.here> X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In local.freebsd.questions you write: > If wanted to define a struct rq variable, which headers >should I include? I am writing a simple user land test program. >I am talking about the struct rq used in >/usr/src/sys/kern/kern_switch.c > I am using something like this: >#include >#include >struct rq queues[1]; [...] It is defined by TAILQ_HEAD(rq, proc) in , but protected by #ifdef _KERNEL. $.02, /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message