summaryrefslogtreecommitdiff
path: root/sys/kern/subr_msgbuf.c
Commit message (Collapse)AuthorAgeFilesLines
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139804
* Put the message about msgbuf cksum mismatch under bootverbose and tellPoul-Henning Kamp2003-09-051-2/+5
| | | | | | | people what the consequence is. Notes: svn path=/head/; revision=119765
* Replace the code for reading and writing the kernel message bufferIan Dowse2003-06-221-0/+239
with a new implementation that has a mostly reentrant "addchar" routine, supports multiple message buffers in the kernel, and hides the implementation details from callers. The new code uses a kind of sequence number to represend the current read and write positions in the buffer. This approach (suggested mainly by bde) permits the read and write pointers to be maintained separately, which reduces the number of atomic operations that are required. The "mostly reentrant" above refers to the way that while it is now always safe to have any number of concurrent writers, readers could see the message buffer after a writer has advanced the pointers but before it has witten the new character. Discussed on: freebsd-arch Notes: svn path=/head/; revision=116660