| /xnu-8020.101.4/bsd/netkey/ |
| H A D | keydb.c | 91 return kalloc_type(struct secpolicy, Z_WAITOK | Z_ZERO); in keydb_newsecpolicy() 110 p = kalloc_type(struct secashead, Z_NOWAIT | Z_ZERO); in keydb_newsecashead() 113 p = kalloc_type(struct secashead, Z_WAITOK | Z_ZERO | Z_NOFAIL); in keydb_newsecashead() 141 p = kalloc_type(struct secasvar, Z_WAITOK_ZERO_NOFAIL); 191 p = kalloc_type(struct secreplay, Z_NOWAIT | Z_ZERO); in keydb_newsecreplay() 194 p = kalloc_type(struct secreplay, Z_WAITOK | Z_ZERO); in keydb_newsecreplay() 233 return kalloc_type(struct secreg, Z_WAITOK_ZERO_NOFAIL);
|
| /xnu-8020.101.4/tools/cocci/ |
| H A D | zalloc-zero.cocci | 16 E = kalloc_type(F, \(Z_ZERO\|Z_ZERO | ...\)); 36 E = kalloc_type(T, \(Z_WAITOK\| Z_WAITOK | ...\) 60 T V = kalloc_type(T, \(Z_ZERO\|Z_ZERO | ...\)); 67 T V = kalloc_type(T, \(Z_WAITOK\| Z_WAITOK | ...\)
|
| H A D | zalloc-nofail.cocci | 17 E = kalloc_type(F, \(Z_NOFAIL\|Z_NOFAIL | ...\)); 28 E = kalloc_type(T, \(Z_WAITOK\| Z_WAITOK | ...\) 57 T V = kalloc_type(T, \(Z_NOFAIL\|Z_NOFAIL | ...\)); 64 T V = kalloc_type(T, \(Z_WAITOK\| Z_WAITOK | ...\)
|
| H A D | zalloc.iso | 52 (T)kalloc_type(E, F) <=> kalloc_type(E, F)
|
| /xnu-8020.101.4/osfmk/ipc/ |
| H A D | ipc_table.h | 118 kalloc_type(struct ipc_entry, (its)->its_size, Z_WAITOK | Z_ZERO) 124 kalloc_type(struct ipc_port_request, (its)->its_size, Z_WAITOK | Z_ZERO)
|
| /xnu-8020.101.4/bsd/security/audit/ |
| H A D | audit_mac.c | 95 kalloc_type(struct mac_audit_record_list_t, Z_WAITOK); in audit_mac_new() 217 record = kalloc_type(struct mac_audit_record, Z_WAITOK | Z_NOFAIL); in audit_mac_data()
|
| /xnu-8020.101.4/bsd/vfs/ |
| H A D | vfs_init.c | 357 oidp = kalloc_type(struct sysctl_oid, Z_WAITOK); in vfsinit() 492 oidp = kalloc_type(struct sysctl_oid, Z_WAITOK); in vfstable_add() 512 allocated = kalloc_type(struct vfstable, Z_WAITOK); in vfstable_add()
|
| H A D | doc_tombstone.c | 54 ut->t_tombstone = kalloc_type(struct doc_tombstone, Z_WAITOK | Z_ZERO); in doc_tombstone_get()
|
| /xnu-8020.101.4/doc/allocators/ |
| H A D | api-basics.md | 87 In the vast majority of cases however, using `kalloc_type` (or `IOMallocType`) 95 `kalloc_type` or one of its variants (like IOKit's `IOMallocType`) and untyped 196 <tt>kalloc_type(type_t, flags)</tt><br/> 218 <tt>kalloc_type(type_t, count, flags)</tt><br/> 230 <tt>kalloc_type(type_t, ...)</tt> (resp. <tt>IONew(type_t, 1)</tt>) 231 <b>isn't</b> equivalent to <tt>kalloc_type(type_t, 1, ...)</tt> 246 <tt>kalloc_type(hdr_type_t, type_t, count, flags)</tt><br/> 271 `operator delete` are injected that force objects to enroll into `kalloc_type`.
|
| /xnu-8020.101.4/tests/ |
| H A D | rump.h | 8 #define kalloc_type(t, f) calloc(1, sizeof(t)) macro
|
| H A D | kalloc.c | 24 T_DECL(kalloc_type, "kalloc_type_test",
|
| /xnu-8020.101.4/iokit/Kernel/ |
| H A D | IOStatistics.cpp | 207 nextWorkLoopDependency = kalloc_type(IOWorkLoopDependency, Z_WAITOK); in initialize() 229 ke = kalloc_type(KextNode, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in onKextLoad() 325 ce = kalloc_type(ClassNode, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in onClassAdded() 439 counter = kalloc_type(IOEventSourceCounter, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in registerEventSource() 502 counter = kalloc_type(IOWorkLoopCounter, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in registerWorkLoop() 552 counter = kalloc_type(IOUserClientCounter, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in registerUserClient() 608 nextWorkLoopDependency = kalloc_type(IOWorkLoopDependency, Z_WAITOK); in attachWorkLoopEventSource() 1182 entry = kalloc_type(IOUserClientProcessEntry, Z_WAITOK); in storeUserClientCallInfo()
|
| /xnu-8020.101.4/osfmk/kern/ |
| H A D | hv_io_notifier.c | 106 ion = kalloc_type(hv_ion_entry_t, Z_WAITOK | Z_NOFAIL); in hv_io_notifier_grp_add() 239 hv_ion_grp_t *grp = kalloc_type(hv_ion_grp_t, Z_WAITOK | Z_ZERO); in hv_io_notifier_grp_alloc()
|
| H A D | task_ref.c | 389 task->ref_group = kalloc_type(struct os_refgrp, 2, in allocate_refgrp_default() 409 task->ref_group = kalloc_type(struct os_refgrp, in allocate_refgrp_full()
|
| H A D | core_analytics.c | 144 ca_event_t event = kalloc_type(struct _ca_event, flags); in core_analytics_allocate_event()
|
| H A D | affinity.c | 387 aspc = kalloc_type(struct affinity_space, Z_WAITOK | Z_NOFAIL); in affinity_space_alloc() 420 aset = kalloc_type(struct affinity_set, Z_WAITOK | Z_NOFAIL); in affinity_set_alloc()
|
| /xnu-8020.101.4/bsd/net/ |
| H A D | init.c | 59 entry = kalloc_type(struct init_list_entry, in net_init_add()
|
| H A D | multicast_list.c | 132 mc = kalloc_type(struct multicast_entry, Z_WAITOK | Z_NOFAIL); in multicast_list_program()
|
| H A D | kpi_protocol.c | 92 entry = kalloc_type(struct proto_input_entry, Z_WAITOK | Z_ZERO); in proto_register_input() 365 proto_family = kalloc_type(struct proto_family_str, in proto_register_plumber()
|
| H A D | ndrv.c | 241 np = kalloc_type(struct ndrv_cb, Z_WAITOK | Z_ZERO | Z_NOFAIL); in ndrv_attach() 364 np->nd_laddr = kalloc_type(struct sockaddr_ndrv, Z_WAITOK | Z_NOFAIL); in ndrv_bind() 742 proto_param.demux_array = kalloc_type(struct ifnet_demux_desc, in ndrv_setspec() 901 ndrv_multi = kalloc_type(struct ndrv_multiaddr, Z_WAITOK_ZERO_NOFAIL); in ndrv_multiaddr_alloc()
|
| H A D | if_low_power_mode.c | 165 event_nwk_wq_entry = kalloc_type(struct if_low_power_ev_nwk_wq_entry,
|
| /xnu-8020.101.4/bsd/skywalk/lib/ |
| H A D | net_filter_event.c | 115 nwk_wqe = kalloc_type(struct nwk_wq_entry, Z_WAITOK | Z_ZERO | Z_NOFAIL); in net_filter_event_enqueue()
|
| /xnu-8020.101.4/bsd/kern/ |
| H A D | posix_shm.c | 356 new_pinfo = kalloc_type(pshm_info_t, Z_WAITOK | Z_ZERO | Z_NOFAIL); in shm_open() 386 new_pnode = kalloc_type(pshmnode_t, Z_WAITOK | Z_ZERO); in shm_open() 621 pshmobj = kalloc_type(pshm_mobj_t, Z_WAITOK | Z_NOFAIL); in pshm_truncate() 971 name_pinfo = kalloc_type(pshm_info_t, in shm_unlink()
|
| /xnu-8020.101.4/bsd/netinet/ |
| H A D | ip_encap.c | 341 new_ep = kalloc_type(struct encaptab, Z_WAITOK | Z_ZERO | Z_NOFAIL); in encap_attach() 405 ep = kalloc_type(struct encaptab, Z_WAITOK | Z_ZERO | Z_NOFAIL); /* XXX */ in encap_attach_func()
|
| /xnu-8020.101.4/libkern/c++/ |
| H A D | OSData.cpp | 598 reserved = (typeof(reserved))kalloc_type(ExpansionData, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in setDeallocFunction() 610 reserved = (typeof(reserved))kalloc_type(ExpansionData, (zalloc_flags_t)(Z_WAITOK | Z_ZERO)); in setSerializable()
|