Home
last modified time | relevance | path

Searched refs:max_nbuf_headers (Results 1 – 4 of 4) sorted by relevance

/xnu-12377.61.12/bsd/dev/
H A Dunix_startup.c73 int max_nbuf_headers = NBUF; variable
78 int max_nbuf_headers = 0; variable
85 SYSCTL_INT(_kern, OID_AUTO, maxnbuf, CTLFLAG_RW | CTLFLAG_LOCKED | CTLFLAG_KERN, &max_nbuf_headers,…
108 if (max_nbuf_headers == 0) { in bsd_get_bufferhdr_map_size()
109max_nbuf_headers = (int)atop_kernel(sane_size / 50); /* Get 2% of ram, but no more than we can map… in bsd_get_bufferhdr_map_size()
111 if ((customnbuf == 0) && ((unsigned int)max_nbuf_headers > 16384)) { in bsd_get_bufferhdr_map_size()
112 max_nbuf_headers = 16384; in bsd_get_bufferhdr_map_size()
114 if (max_nbuf_headers < CONFIG_MIN_NBUF) { in bsd_get_bufferhdr_map_size()
115 max_nbuf_headers = CONFIG_MIN_NBUF; in bsd_get_bufferhdr_map_size()
119 if (max_nbuf_headers < 4096) { in bsd_get_bufferhdr_map_size()
[all …]
/xnu-12377.61.12/bsd/sys/
H A Dbuf_internal.h298 extern int max_nbuf_headers; /* The max number of buffer headers */
/xnu-12377.61.12/bsd/kern/
H A Dbsd_init.c1226 if (PE_parse_boot_argn("nbuf", &max_nbuf_headers, in parse_bsd_args()
1227 sizeof(max_nbuf_headers))) { in parse_bsd_args()
/xnu-12377.61.12/bsd/vfs/
H A Dvfs_bio.c2360 for (i = 0; i < max_nbuf_headers; i++) { in bufinit()
3887 if (nbuf_headers < max_nbuf_headers) { in getnewbuf()