🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pe.cust.sources
Article #2

Re: uucp speedup, part 1 - kernel changes

#2
From: David Sherman
Date: Tue, 16 Apr 1985 06:13
20 lines
1516 bytes
There's another way to implement nap which also works;
that is to implement a new device to which you ioctl to
get the appropriate number of naps. I put it in our
11/23 v7 system two years ago after getting it off the
net, and transferred it to our 3220 last fall. If anyone
wants it, let me know. All it requires is a cdevsw entry,
a /usr/sys/dev/nap.c, and a mknod of /dev/nap. A /usr/src/libc/gen/nap.c
routine calls the ioctl for you as nap(3), or you can do it
by hand.

If anyone wants this, let me know. Since the system-call
approach has already been posted, you may want to use that
one instead. I don't think there's much technical reason
to prefer either one. The code for the one I use, since it's
in C, is more portable than the posted assembler source.

Dave Sherman
-- 
{utzoo pesnta nrcaero utcs hcr}!lsuc!dave
{allegra decvax ihnp4 linus}!utcsri!lsuc!dave
Technical Details
Message-ID: <604@lsuc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!lsuc!dave
References: <821@peora.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!lsuc!dave
From: dave@lsuc.UUCP (David Sherman)
Newsgroups: pe.cust.sources
Subject: Re: uucp speedup, part 1 - kernel changes
Message-ID: <604@lsuc.UUCP>
Date: Tue, 16-Apr-85 01:13:11 EST
Article-I.D.: lsuc.604
Posted: Tue Apr 16 01:13:11 1985
Date-Received: Wed, 17-Apr-85 16:48:07 EST
References: <821@peora.UUCP>
Reply-To: dave@lsuc.UUCP (David Sherman)
Distribution: pe.cust
Organization: Law Society of Upper Canada, Toronto
Lines: 20
Summary: another way to implement nap()