Home
last modified time | relevance | path

Searched refs:npgs (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mincore.c83 check_residency(void *addr, size_t npgs) in check_residency() argument
88 vec = malloc(npgs); in check_residency()
91 ATF_REQUIRE(mincore(addr, npgs * page, vec) == 0); in check_residency()
93 for (i = resident = 0; i < npgs; i++) { in check_residency()
150 size_t npgs = 0, resident; in ATF_TC_BODY() local
185 npgs = st.st_size / page; in ATF_TC_BODY()
188 npgs++; in ATF_TC_BODY()
190 (void)check_residency(addr, npgs); in ATF_TC_BODY()
192 rv = mlock(addr, npgs * page); in ATF_TC_BODY()
197 npgs = 128; in ATF_TC_BODY()
[all …]
/freebsd/lib/libc/gen/
H A Dmemfd_create.c57 int error, fd, npgs, oflags, pgidx, saved_errno, shmflags; in memfd_create() local
95 npgs = getpagesizes(pgs, nitems(pgs)); in memfd_create()
96 if (npgs == -1) in memfd_create()
99 for (pgidx = 0; pgidx < npgs; pgidx++) { in memfd_create()
103 if (pgidx == npgs) { in memfd_create()
/freebsd/sys/kern/
H A Dkern_mbuf.c1724 int i, npgs; in mb_alloc_ext_plus_pages() local
1730 npgs = howmany(len, PAGE_SIZE); in mb_alloc_ext_plus_pages()
1731 for (i = 0; i < npgs; i++) { in mb_alloc_ext_plus_pages()
1746 m->m_epg_npgs = npgs; in mb_alloc_ext_plus_pages()