Subject: SCHED_LOCK(9)?
To: None <tech-kern@netbsd.org>
From: Oliver Gould <ogould@olix0r.net>
List: tech-kern
Date: 04/20/2007 16:05:00
--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello-

I appreciate the help over the last few days.  I am now _almost_ to the
point of testing KQEMU.

One last^W question:

Is SCHED_LOCK used anymore?  Many manpages (scheduler(9), mi_switch(9),
et al) reference it; yet I get the following error:

  isla# modload kqemu.o
  modload: /dev/ksyms: Device not configured
  kqemu.o: In function `kqemu_schedule':
  : undefined reference to `SCHED_LOCK'
  modload: can't prelink `kqemu.o' creating `kqemu'

I #include <sys/sched.h>, but it does not appear to be defined there, or
_anywhere_ for that matter:

  (isla)$ grep -R SCHED_LOCK /usr/src/sys   =20
  /usr/src/sys/arch/acorn32/acorn32/hydra.c:      SCHED_LOCK(s);

And that's all she wrote...

Should I be using something else?  Is it documented somewhere?

Thanks,
  - Oliver

--X1bOJ3K7DJ5YkBrT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iQEVAwUBRikc7PBcMTqzwkq9AQJtwwgAnef4345S3at8LxPIbna1qvxOIXNtnn+o
TruDxSBjwwDlm6JWYWO9jSaaiTDd0nY7Tj3fykOO8bzo7UP6ybCDAdjy82nekFIS
CH0R/bt9u34LftgUcU/zpvJhUTHP4m/rgLqH1yOU9ebXmLAlANgHlmOOj7+nMtL+
dQkaGFyV/JUGlYZnMWuCKLHKg4cfTaa+5RHQci53GDOmHmEEIwVT4xm29WiwOOun
NpiAuZewQXkGWcE/yzAc611FR/I88UQgkQBxsiUwR3wy2I9nWcZGWBtV7VrOp8/8
U5evHvBFcuBWG/QxEBdpsaWZzFRTQD2S68X0uipVv5kBhrQCK3Xt0Q==
=CZkU
-----END PGP SIGNATURE-----

--X1bOJ3K7DJ5YkBrT--