<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/random/randomdev.c, branch release/5.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2003-11-20T15:35:48Z</updated>
<entry>
<title>Fix a major faux pas of mine. I was causing 2 very bad things to</title>
<updated>2003-11-20T15:35:48Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2003-11-20T15:35:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4e3a7a14d9ee7553f12363ada914d792b7f5e021'/>
<id>urn:sha1:4e3a7a14d9ee7553f12363ada914d792b7f5e021</id>
<content type='text'>
happen in interrupt context; 1) sleep locks, and 2) malloc/free
calls.

1) is fixed by using spin locks instead.

2) is fixed by preallocating a FIFO (implemented with a STAILQ)
   and using elements from this FIFO instead. This turns out
   to be rather fast.

OK'ed by:	re (scottl)
Thanks to:	peter, jhb, rwatson, jake
Apologies to:	*
</content>
</entry>
<entry>
<title>Overhaul the entropy device:</title>
<updated>2003-11-17T23:02:21Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2003-11-17T23:02:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0887c8c110da2f060bc422e6942320054bcc755d'/>
<id>urn:sha1:0887c8c110da2f060bc422e6942320054bcc755d</id>
<content type='text'>
o Each source gets its own queue, which is a FIFO, not a ring buffer.
  The FIFOs are implemented with the sys/queue.h macros. The separation
  is so that a low entropy/high rate source can't swamp the harvester
  with low-grade entropy and destroy the reseeds.

o Each FIFO is limited to 256 (set as a macro, so adjustable) events
  queueable. Full FIFOs are ignored by the harvester. This is to
  prevent memory wastage, and helps to keep the kernel thread CPU
  usage within reasonable limits.

o There is no need to break up the event harvesting into ${burst}
  sized chunks, so retire that feature.

o Break the device away from its roots with the memory device, and
  allow it to get its major number automagically.
</content>
</entry>
<entry>
<title>- Implement selwakeuppri() which allows raising the priority of a</title>
<updated>2003-11-09T09:17:26Z</updated>
<author>
<name>Seigo Tanimura</name>
<email>tanimura@FreeBSD.org</email>
</author>
<published>2003-11-09T09:17:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=512824f8f7748f7bb54ef900bc8e68a95a3d0f4d'/>
<id>urn:sha1:512824f8f7748f7bb54ef900bc8e68a95a3d0f4d</id>
<content type='text'>
  thread being waken up.  The thread waken up can run at a priority as
  high as after tsleep().

- Replace selwakeup()s with selwakeuppri()s and pass appropriate
  priorities.

- Add cv_broadcastpri() which raises the priority of the broadcast
  threads.  Used by selwakeuppri() if collision occurs.

Not objected in:	-arch, -current
</content>
</entry>
<entry>
<title>Make sure we get all user-written input. This simplifies the</title>
<updated>2003-11-02T10:55:16Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2003-11-02T10:55:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f757589236b4ab8b41b811afee170c30f6157e70'/>
<id>urn:sha1:f757589236b4ab8b41b811afee170c30f6157e70</id>
<content type='text'>
code considerably.

Submitted by:	(forgotten)
[I'll happily acknowledge the submitter if he owns up!]
</content>
</entry>
<entry>
<title>Use __FBSDID().</title>
<updated>2003-08-24T17:55:58Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-08-24T17:55:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=aad970f1fee9a2a3e5a0f880be9b87c6193b3bd1'/>
<id>urn:sha1:aad970f1fee9a2a3e5a0f880be9b87c6193b3bd1</id>
<content type='text'>
Also some minor style cleanups.
</content>
</entry>
<entry>
<title>Change the sleep identifier to "-" where random normally sleeps.</title>
<updated>2003-07-02T08:04:57Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2003-07-02T08:04:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=68c2a41e6ce830dc667df31a243debfde23682fd'/>
<id>urn:sha1:68c2a41e6ce830dc667df31a243debfde23682fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Gigacommit to improve device-driver source compatibility between</title>
<updated>2003-03-03T12:15:54Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2003-03-03T12:15:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7ac40f5f59dea6e9ab4869e974bdd4026274e921'/>
<id>urn:sha1:7ac40f5f59dea6e9ab4869e974bdd4026274e921</id>
<content type='text'>
branches:

Initialize struct cdevsw using C99 sparse initializtion and remove
all initializations to default values.

This patch is automatically generated and has been tested by compiling
LINT with all the fields in struct cdevsw in reverse order on alpha,
sparc64 and i386.

Approved by:    re(scottl)
</content>
</entry>
<entry>
<title>Back out M_* changes, per decision of the TRB.</title>
<updated>2003-02-19T05:47:46Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2003-02-19T05:47:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a163d034fadcfb4a25ca34a2ba5f491c47b6ff69'/>
<id>urn:sha1:a163d034fadcfb4a25ca34a2ba5f491c47b6ff69</id>
<content type='text'>
Approved by: trb
</content>
</entry>
<entry>
<title>Remove M_TRYWAIT/M_WAITOK/M_WAIT.  Callers should use 0.</title>
<updated>2003-01-21T08:56:16Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2003-01-21T08:56:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=44956c9863dc03344b03bdf6a83acf4e743f8e50'/>
<id>urn:sha1:44956c9863dc03344b03bdf6a83acf4e743f8e50</id>
<content type='text'>
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
</content>
</entry>
<entry>
<title>Some kernel threads try to do significant work, and the default KSTACK_PAGES</title>
<updated>2002-10-02T07:44:29Z</updated>
<author>
<name>Scott Long</name>
<email>scottl@FreeBSD.org</email>
</author>
<published>2002-10-02T07:44:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=316ec49abd15743784b47592c00d6297dabce21b'/>
<id>urn:sha1:316ec49abd15743784b47592c00d6297dabce21b</id>
<content type='text'>
doesn't give them enough stack to do much before blowing away the pcb.
This adds MI and MD code to allow the allocation of an alternate kstack
who's size can be speficied when calling kthread_create.  Passing the
value 0 prevents the alternate kstack from being created.  Note that the
ia64 MD code is missing for now, and PowerPC was only partially written
due to the pmap.c being incomplete there.
Though this patch does not modify anything to make use of the alternate
kstack, acpi and usb are good candidates.

Reviewed by:	jake, peter, jhb
</content>
</entry>
</feed>
