Home
last modified time | relevance | path

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

/xnu-8020.121.3/bsd/dev/
H A Dunix_startup.c76 int max_nbuf_headers = NBUF; variable
81 int max_nbuf_headers = 0; variable
88 SYSCTL_INT(_kern, OID_AUTO, maxnbuf, CTLFLAG_RW | CTLFLAG_LOCKED | CTLFLAG_KERN, &max_nbuf_headers,…
114 if (max_nbuf_headers == 0) { in bsd_get_bufferhdr_map_size()
115max_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()
117 if ((customnbuf == 0) && ((unsigned int)max_nbuf_headers > 16384)) { in bsd_get_bufferhdr_map_size()
118 max_nbuf_headers = 16384; in bsd_get_bufferhdr_map_size()
120 if (max_nbuf_headers < CONFIG_MIN_NBUF) { in bsd_get_bufferhdr_map_size()
121 max_nbuf_headers = CONFIG_MIN_NBUF; in bsd_get_bufferhdr_map_size()
125 if (max_nbuf_headers < 4096) { in bsd_get_bufferhdr_map_size()
[all …]
/xnu-8020.121.3/bsd/sys/
H A Dbuf_internal.h290 extern int max_nbuf_headers; /* The max number of buffer headers */
/xnu-8020.121.3/bsd/kern/
H A Dbsd_init.c1168 if (PE_parse_boot_argn("nbuf", &max_nbuf_headers, in parse_bsd_args()
1169 sizeof(max_nbuf_headers))) { in parse_bsd_args()
/xnu-8020.121.3/bsd/vfs/
H A Dvfs_bio.c2170 for (i = 0; i < max_nbuf_headers; i++) { in bufinit()
3695 if (nbuf_headers < max_nbuf_headers) { in getnewbuf()