summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_mbpool.c
Commit message (Collapse)AuthorAgeFilesLines
* Give (*ext_free) an int return value allowing for very sophisticatedandre2013-08-251-1/+4
| | | | | | | | external mbuf buffer management capabilities in the future. For now only EXT_FREE_OK is defined with current legacy behavior. Sponsored by: The FreeBSD Foundation
* Add an mbuf pointer parameter to (*ext_free) to give the externalandre2013-08-241-1/+1
| | | | | | | | | | | | free function access to the mbuf the external memory was attached to. Mechanically adjust all users to include the mbuf parameter. This fixes a long standing annoyance for external free functions. Before one had to sacrifice one of the argument pointers for this. Sponsored by: The FreeBSD Foundation
* Add parens around *free in *free++ in mbp_count() so that mbp_count()rwatson2007-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
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-1/+1
|
* Pass MTX_DEF as the last argument to mtx_init() instead of 0. Thistruckman2003-12-071-1/+1
| | | | | is not a functional change. The code happened to work properly only because MTX_DEF is defined as 0.
* Add a facility for devices, specifically network interfaces, that requireharti2003-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.
OpenPOWER on IntegriCloud