aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_mbpool.c
Commit message (Collapse)AuthorAgeFilesLines
* Add parens around *free in *free++ in mbp_count() so that mbp_count()Robert Watson2007-05-271-1/+1
| | | | | | | | | | | actually works. mbp_count() turns out only to be used in debugging code in if_patm_intr.c, so this bug did not affect much in practice. Found with: Coverity Prevent(tm) CID: 1943 Notes: svn path=/head/; revision=170023
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139804
* Pass MTX_DEF as the last argument to mtx_init() instead of 0. ThisDon Lewis2003-12-071-1/+1
| | | | | | | | is not a functional change. The code happened to work properly only because MTX_DEF is defined as 0. Notes: svn path=/head/; revision=123263
* Add a facility for devices, specifically network interfaces, that requireHartmut Brandt2003-07-151-0/+399
large to huge amounts of small or medium sized receive buffers. The problem with these situations is that they eat up the available DMA address space very quickly when using mbufs or even mbuf clusters. Additionally this facility provides a direct mapping between 32-bit integers and these buffers. This is needed for devices originally designed for 32-bit systems. Ususally the virtual address of the buffer is used as a handle to find the buffer as soon as it is returned by the card. This does not work for 64-bit machines and hence this mapping is needed. Notes: svn path=/head/; revision=117624