Home
last modified time | relevance | path

Searched refs:mapsz (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c39 size_t mapsz = sysconf(_SC_PAGESIZE) * 2; in main() local
42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
59 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 1); in main()
63 ret = munmap(buf, mapsz); in main()
67 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); in main()
72 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
75 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); in main()
78 ret = munmap(buf, mapsz); in main()
86 ret = ftruncate(fd, mapsz); in main()
95 ret = munmap(buf, mapsz); in main()
[all …]
H A Dinz_mlock.c38 size_t mapsz = sysconf(_SC_PAGESIZE) * 2; in main() local
40 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
43 memset(buf, 'a', mapsz); in main()
45 ret = mlock(buf, mapsz); in main()
48 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); in main()
53 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
66 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
H A Dinz_region.c38 size_t mapsz = sysconf(_SC_PAGESIZE) * 2; in main() local
40 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
43 memset(buf, 'a', mapsz); in main()
45 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); in main()
50 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
63 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
H A Dinz_child.c40 size_t mapsz = sysconf(_SC_PAGESIZE) * 2; in main() local
42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
46 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); in main()
50 memset(buf, 'a' + nchild, mapsz); in main()
54 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
69 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
H A Dinz_split.c38 size_t mapsz = sysconf(_SC_PAGESIZE) * 8; in main() local
42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
45 memset(buf, 'a', mapsz); in main()
47 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); in main()
58 for (i = spltoff + spltsz; i < mapsz; i++) in main()
74 for (i = spltoff + spltsz; i < mapsz; i++) in main()
H A Dinz_vpp.c39 size_t mapsz = 10 * pgsz; in main() local
43 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
46 memset(buf, 'a', mapsz); in main()
58 for (i = clrsz + clroff; i < mapsz; i++) in main()
71 for (i = 0, ubuf = buf; i < mapsz; i++) in main()
H A Dinz_split_vpp.c41 size_t mapsz = 10 * pgsz; in main() local
47 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in main()
50 memset(buf, 'a', mapsz); in main()
67 for (i = clrsz + clroff; i < mapsz; i++) in main()
87 for (i = clrsz + clroff; i < mapsz; i++) in main()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Darc4random.c122 size_t pgsz, mapsz; in arc4_fill() local
128 mapsz = P2ROUNDUP(sizeof (arc4_state_t), pgsz); in arc4_fill()
129 a = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, in arc4_fill()
133 if (memcntl(a, mapsz, MC_INHERIT_ZERO, 0, 0, 0) != 0) in arc4_fill()
/illumos-gate/usr/src/uts/sun4u/os/
H A Dplat_ecc_unum.c917 int mapsz; in flt_name_to_msg_type() local
935 mapsz = sizeof (plat_ecc_bl_map_v1) / in flt_name_to_msg_type()
939 mapsz = sizeof (plat_ecc_bl_map_v2) / in flt_name_to_msg_type()
942 for (i = 0; i < mapsz; i++) { in flt_name_to_msg_type()
/illumos-gate/usr/src/uts/sun4/vm/
H A Dsfmmu.c342 size_t mapsz; in sfmmu_map_prom_mappings()
350 mapsz = kmem64_aligned_end - vaddr; in sfmmu_map_prom_mappings()
351 if (mapsz >= size) { in sfmmu_map_prom_mappings()
354 size -= mapsz; in sfmmu_map_prom_mappings()
355 offset += mapsz; in sfmmu_map_prom_mappings()
/illumos-gate/usr/src/uts/common/os/
H A Ddamap.c946 int mapsz = mapp->dam_size; in damap_lookup_all() local
964 bitset_resize(bsp, mapsz); in damap_lookup_all()
966 for (n_ids = 0, i = 1; i < mapsz; i++) { in damap_lookup_all()
/illumos-gate/usr/src/uts/sfmmu/vm/
H A Dhat_sfmmu.c2452 size_t mapsz; in hat_do_memload_array() local
2499 mapsz = numpg << MMU_PAGESHIFT; in hat_do_memload_array()
2501 IS_P2ALIGNED(addr, mapsz) && in hat_do_memload_array()
2532 mapsz = numpg * MMU_PAGESIZE; in hat_do_memload_array()
2536 addr += mapsz; in hat_do_memload_array()