| /xnu-11215/san/memory/ |
| H A D | ubsan_log.c | 116 const size_t buf_size = ubsan_log_size * 256; variable 128 char *buf = kalloc_data(buf_size, Z_WAITOK | Z_ZERO); 134 ubsan_json_init(&ubsan_buf, buf, buf_size); 147 kfree_data(buf, buf_size);
|
| /xnu-11215/libkern/os/ |
| H A D | trace.h | 469 size_t buf_size = _os_trace_encode(buf, sizeof(buf), _m, ##__VA_ARGS__); \ 470 _os_trace_internal(&__dso_handle, _t, _m, buf, buf_size, NULL); \ 483 size_t buf_size = _os_trace_encode(buf, sizeof(buf), _m, _1); \ 484 _os_trace_internal(&__dso_handle, _t, _m, buf, buf_size, _payload); \ 491 size_t buf_size = _os_trace_encode(buf, sizeof(buf), _m, _1, _2); \ 492 _os_trace_internal(&__dso_handle, _t, _m, buf, buf_size, _payload); \ 499 size_t buf_size = _os_trace_encode(buf, sizeof(buf), _m, _1, _2, _3); \ 500 _os_trace_internal(&__dso_handle, _t, _m, buf, buf_size, _payload); \ 507 size_t buf_size = _os_trace_encode(buf, sizeof(buf), _m, _1, _2, _3, _4); \ 508 _os_trace_internal(&__dso_handle, _t, _m, buf, buf_size, _payload); \ [all …]
|
| /xnu-11215/tools/ |
| H A D | cred_dump_creds.c | 38 void dump_cred_hash_table( debug_ucred * credp, size_t buf_size ); 75 dump_cred_hash_table( debug_ucred * credp, size_t buf_size ) in dump_cred_hash_table() argument 77 int i, my_count = (buf_size / sizeof(debug_ucred)); in dump_cred_hash_table()
|
| /xnu-11215/tests/ |
| H A D | prng.c | 18 prng_sanitycheck(uint8_t *buf, size_t buf_size) in prng_sanitycheck() argument 20 size_t nblocks = buf_size / BLOCK_SIZE; in prng_sanitycheck()
|
| H A D | vm_phys_footprint.c | 327 size_t buf_size; variable 330 buf_size = TEMP_FILE_SIZE; 332 T_ASSERT_NOTNULL(buf = (char *)malloc(buf_size), 333 "allocate %zu-byte buffer", buf_size); 334 memset(buf, 'f', buf_size); 346 T_ASSERT_EQ(nbytes = write(fd, buf, buf_size), 347 (ssize_t)buf_size, 348 "write %zu bytes", buf_size);
|
| H A D | net_bridge.c | 297 ether_ntoa_buf(const ether_addr_t *n, char * buf, int buf_size) in ether_ntoa_buf() argument 302 strlcpy(buf, str, buf_size); in ether_ntoa_buf() 307 inet_ptrtop(int af, const void * ptr, char * buf, socklen_t buf_size) in inet_ptrtop() argument 324 return inet_ntop(af, &u, buf, buf_size); in inet_ptrtop() 1221 int buf_size; in switch_port_list_add_port() local 1253 T_ASSERT_POSIX_SUCCESS(bpf_get_blen(fd, &buf_size), NULL); in switch_port_list_add_port() 1257 member_ifname, fd, buf_size); in switch_port_list_add_port() 1265 p->rx_buf_size = buf_size; in switch_port_list_add_port() 1266 p->rx_buf = malloc((unsigned)buf_size); in switch_port_list_add_port()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_sanitize_telemetry.c | 182 vm_sanitize_populate_symbolicatable_backtrace_string(uintptr_t addr, char *buffer, size_t buf_size) in vm_sanitize_populate_symbolicatable_backtrace_string() argument 189 telemetry_backtrace_to_string(buffer, buf_size, backtrace_count, frames); in vm_sanitize_populate_symbolicatable_backtrace_string()
|
| /xnu-11215/bsd/sys/ |
| H A D | unicode.h | 276 size_t buf_size,
|
| H A D | buf.h | 487 uint32_t buf_size(buf_t bp);
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_exclave_fs.h | 72 uint32_t buf_size, int32_t *count);
|
| H A D | vfs_io_compression_stats.c | 290 iocs_compress_buffer(vnode_t vn, uint8_t *buf_ptr, uint32_t buf_size) in iocs_compress_buffer() argument 297 for (offset = 0; offset < buf_size; offset += block_size) { in iocs_compress_buffer() 298 int current_block_size = min(block_size, buf_size - offset); in iocs_compress_buffer()
|
| H A D | vfs_unicode.c | 529 size_t buf_size, in utf8_normalizeOptCaseFoldAndMatchSubstring() argument 566 const int32_t *ustrALimit = ustrA + (buf_size / sizeof(int32_t)); in utf8_normalizeOptCaseFoldAndMatchSubstring()
|
| H A D | vfs_attrlist.c | 2755 ssize_t buf_size; in vfs_attr_pack_internal() local 2788 buf_size = (ssize_t)uio_resid(auio); in vfs_attr_pack_internal() 2789 if ((buf_size <= 0) || (uio_iovcnt(auio) > 1)) { in vfs_attr_pack_internal() 2891 if (buf_size < ab.allocated) { in vfs_attr_pack_internal() 2898 if (newlen <= buf_size) { in vfs_attr_pack_internal() 2908 if (uio_isuserspace(auio) || (buf_size < ab.allocated)) { in vfs_attr_pack_internal() 2929 ((ssize_t)uio_curriovlen(auio) - buf_size); in vfs_attr_pack_internal() 3038 copy_size = lmin(buf_size, ab.allocated); in vfs_attr_pack_internal() 3058 uio_setresid(auio, buf_size - copy_size); in vfs_attr_pack_internal()
|
| H A D | vfs_exclave_fs.c | 1363 uint32_t buf_size, int32_t *count) in vfs_exclave_fs_readdir() argument 1425 error = uio_addiov(auio, (uintptr_t)dirent_buf, buf_size); in vfs_exclave_fs_readdir()
|
| /xnu-11215/bsd/net/ |
| H A D | ntstat.h | 1483 … void *__sized_by(buf_size)buf, /* If not NULL, the address for the extension to be returned in */ 1484 …size_t buf_size); /* The size of the buffer space, typically matching the return fro… 1543 …void *__sized_by (buf_size)buf, /* If not NULL, the address for the extension to … 1544 …size_t buf_size); /* The size of the buffer space, typically matching the return from a …
|
| H A D | bpf.c | 4658 vm_size_t buf_size; variable 4666 buf_size = req->oldlen; 4667 if (buf_size > BPF_MAX_DEVICES * sizeof(struct xbpf_d)) { 4668 buf_size = BPF_MAX_DEVICES * sizeof(struct xbpf_d); 4670 xbdbuf = kalloc_data(buf_size, Z_WAITOK | Z_ZERO); 4673 if (buf_size < (nbpfilter * sizeof(struct xbpf_d))) { 4675 kfree_data(xbdbuf, buf_size); 4697 kfree_data(xbdbuf, buf_size);
|
| /xnu-11215/bsd/kern/ |
| H A D | subr_log_stream.c | 651 const size_t buf_size = blocks_size(ls->ls_blk_count); in log_stream_teardown() local 652 bzero(ls->ls_buf, buf_size); in log_stream_teardown() 653 kfree_data(ls->ls_buf, buf_size); in log_stream_teardown()
|
| H A D | kern_sysctl.c | 469 const size_t buf_size = req->oldlen; variable 484 if (buf_size > (WORKLOAD_CONFIG_MAX_SIZE - 1) || 485 buf_size == 0) { 489 plist_blob = kalloc_data(buf_size, Z_WAITOK | Z_ZERO); 494 size_t size = buf_size; 497 kfree_data(plist_blob, buf_size); 504 if (buf_size < size) { 508 kfree_data(plist_blob, buf_size); 578 uint32_t buf_size = 0; in sysctl_sched_stats() local 595 buf_size = size; in sysctl_sched_stats() [all …]
|
| H A D | kern_exit.c | 2066 uint32_t buf_size = 0; in proc_prepareexit() local 2071 buf_size = (uint32_t)((est_knotes + 32) * sizeof(uint64_t)); in proc_prepareexit() 2072 buffer = kalloc_data(buf_size, Z_WAITOK); in proc_prepareexit() 2074 num_knotes = kevent_proc_copy_uptrs(p, buffer, buf_size); in proc_prepareexit() 2085 kfree_data(buffer, buf_size); in proc_prepareexit()
|
| H A D | socket_flows.c | 1065 size_t buf_size) in soflow_nstat_provider_request_extensions() argument 1086 if (buf_size < sizeof(nstat_domain_info)) { in soflow_nstat_provider_request_extensions()
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_kern.c | 273 ASSERT_NXDOM_PARAMS(nxdom, buf_size); in nxdom_attach() 1924 uint32_t buf_size, buf_region_segment_size, max_buffers = 0; in nxprov_params_adjust() local 1935 NXPROV_PARAMS_ADJUST(NXPREQ_BUF_SIZE, buf_size); in nxprov_params_adjust() 1985 buf_size = nxp->nxp_buf_size; in nxprov_params_adjust() 2005 .adj_buf_size = &buf_size, in nxprov_params_adjust() 2064 nxp->nxp_buf_size = buf_size; in nxprov_params_adjust()
|
| /xnu-11215/osfmk/tests/ |
| H A D | kernel_tests.c | 3226 int i, buf_size; in ts_kernel_timingsafe_bcmp_test() local 3252 buf_size = 1024 * 16; in ts_kernel_timingsafe_bcmp_test() 3253 buf = kalloc_data(buf_size, Z_WAITOK); in ts_kernel_timingsafe_bcmp_test() 3256 read_random(buf, buf_size); in ts_kernel_timingsafe_bcmp_test() 3257 T_ASSERT(timingsafe_bcmp(buf, buf, buf_size) == 0, NULL); in ts_kernel_timingsafe_bcmp_test() 3258 T_ASSERT(timingsafe_bcmp(buf, buf + 1, buf_size - 1) == 1, NULL); in ts_kernel_timingsafe_bcmp_test() 3264 kfree_data(buf, buf_size); in ts_kernel_timingsafe_bcmp_test()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_xfer.c | 2557 int buf_size, int max_frags, bool multi_llink) in setup_flowswitch_and_flow() argument 2567 rx_ring_size, buf_size, max_frags, 0); in setup_flowswitch_and_flow() 2592 int buf_size, int max_frags) in setup_flowswitch() argument 2597 rx_ring_size, buf_size, max_frags, 0); in setup_flowswitch() 2607 int buf_size, int max_frags, bool multi_llink, uuid_t parent_flow_id, in fetch_if_flowswitch_and_setup_flow() argument 2699 bool test_wmm, int tx_ring_size, int rx_ring_size, int buf_size, in skt_xfer_udp_common() argument 2748 tx_ring_size, rx_ring_size, buf_size, max_frags); in skt_xfer_udp_common() 2751 tx_ring_size, rx_ring_size, buf_size, max_frags); in skt_xfer_udp_common() 2762 buf_size, max_frags, multi_llink); in skt_xfer_udp_common()
|
| H A D | skywalk_test_utils.h | 231 uint64_t tx_slots, uint64_t rx_slots, uint64_t buf_size, uint64_t max_frags,
|
| /xnu-11215/osfmk/kern/ |
| H A D | thread.c | 3522 uint32_t buf_size = sizeof(*pid); in thread_get_voucher_origin_pid() local 3529 &buf_size); in thread_get_voucher_origin_pid() 3539 uint32_t buf_size = sizeof(origin_proximate_pids); in thread_get_voucher_origin_proximate_pid() local 3546 &buf_size); in thread_get_voucher_origin_proximate_pid()
|