Home
last modified time | relevance | path

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

/xnu-10002.41.9/bsd/dev/
H A Dunix_startup.c78 int max_nbuf_headers = NBUF; variable
83 int max_nbuf_headers = 0; variable
90 SYSCTL_INT(_kern, OID_AUTO, maxnbuf, CTLFLAG_RW | CTLFLAG_LOCKED | CTLFLAG_KERN, &max_nbuf_headers,…
116 if (max_nbuf_headers == 0) { in bsd_get_bufferhdr_map_size()
117max_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()
119 if ((customnbuf == 0) && ((unsigned int)max_nbuf_headers > 16384)) { in bsd_get_bufferhdr_map_size()
120 max_nbuf_headers = 16384; in bsd_get_bufferhdr_map_size()
122 if (max_nbuf_headers < CONFIG_MIN_NBUF) { in bsd_get_bufferhdr_map_size()
123 max_nbuf_headers = CONFIG_MIN_NBUF; in bsd_get_bufferhdr_map_size()
127 if (max_nbuf_headers < 4096) { in bsd_get_bufferhdr_map_size()
[all …]
/xnu-10002.41.9/bsd/sys/
H A Dbuf_internal.h291 extern int max_nbuf_headers; /* The max number of buffer headers */
/xnu-10002.41.9/bsd/kern/
H A Dbsd_init.c1209 if (PE_parse_boot_argn("nbuf", &max_nbuf_headers, in parse_bsd_args()
1210 sizeof(max_nbuf_headers))) { in parse_bsd_args()
/xnu-10002.41.9/bsd/vfs/
H A Dvfs_bio.c2191 for (i = 0; i < max_nbuf_headers; i++) { in bufinit()
3716 if (nbuf_headers < max_nbuf_headers) { in getnewbuf()