Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 16:39:30 -0700 (PDT)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        lioux@uol.com.br
Cc:        questions@freebsd.org
Subject:   Re: How to define "struct rq"?
Message-ID:  <200105282339.f4SNdUG84515@explorer.rsa.com>
References:  <20010528141144.A6291@Fedaykin.here>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/param.h>
>#include <sys/proc.h>

>struct rq	queues[1];

[...]

It is defined by TAILQ_HEAD(rq, proc) in <sys/proc.h>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105282339.f4SNdUG84515>