Home
last modified time | relevance | path

Searched refs:pointer (Results 1 – 25 of 40) sorted by relevance

12

/xnu-12377.1.9/libkern/libkern/c++/
H A Dintrusive_shared_ptr.h131 using pointer = T *;
155 intrusive_shared_ptr(pointer p, retain_t) noexcept : ptr_(p) {
173 intrusive_shared_ptr(__attribute__((os_consumed)) pointer p, no_retain_t) noexcept : ptr_(p) {
335 constexpr pointer
370 reset(__attribute__((os_consumed)) pointer p, no_retain_t) noexcept
387 reset(pointer p, retain_t) noexcept
390 pointer old = ptr_;
414 constexpr pointer
420 constexpr pointer
438 constexpr pointer
[all …]
H A Dbounded_ptr.h180 bounded_ptr(T* pointer, T const* begin, T const* end)
196 if (__improbable(os_sub_overflow(reinterpret_cast<uintptr_t>(pointer),
/xnu-12377.1.9/doc/primitives/
H A Dstring-handling.md70 functions assume the output pointer is a buffer and the input is a NUL-
88 a `__null_terminated` pointer to the output string instead of the length of the input string.
126 in lieu of a pointer+length pair: `strbuflen(array)`, `strbufcmp(a, b)`,
131 NUL-terminated and returned as a NUL-terminated string pointer.
134 of indexable pointer, and only once you're done should you convert it to a
137 any NUL character found through a `__null_terminated` pointer access will result
153 This code converts the string pointer to a NUL-terminated string too early,
154 while it's still being modified. Keeping my_string a `__null_terminated` pointer
169 NUL-terminated). Using `my_buffer` as an indexable pointer allows you to modify
196 pointer to you for convenience, not all use cases are resolved by calling
[all …]
H A Datomics.md232 which has an extra `orig_value` argument which must be a pointer to a local
345 - loads through a pointer loaded with a *dependency* memory ordering
349 particular pointer with the `os_atomic_load_with_dependency_on` and
417 the pointer can only take a couple of values and ditch all these manually
/xnu-12377.1.9/libkern/os/
H A Dhash.h120 os_hash_kernel_pointer(const void *pointer) in os_hash_kernel_pointer() argument
122 uintptr_t key = (uintptr_t)((intptr_t)pointer << 16) >> 20; in os_hash_kernel_pointer()
/xnu-12377.1.9/osfmk/mach/
H A Ddyld_kernel_fixups.h75 sign_pointer(struct dyld_chained_ptr_64_kernel_cache_rebase pointer __unused, in sign_pointer()
80 uint64_t discriminator = pointer.diversity; in sign_pointer()
81 if (pointer.addrDiv) { in sign_pointer()
88 switch (pointer.key) { in sign_pointer()
/xnu-12377.1.9/doc/debugging/
H A Dextensible_paniclog.md21 … data_id, max len, and options as input and emits an instance in the out pointer. The data id take…
68 … UUID, data_id and the max len as input and emits an instance in the out pointer. The data id take…
93 This function is called to get a pointer to the ext paniclog buffer. After this function is called,…
133 … data_id, max len, and options as input and emits an instance in the out pointer. The data id take…
169 This function is called to get a pointer to the ext paniclog buffer. To modify the buffer after get…
175 This function is called to get a pointer to the ext paniclog buffer. After this function is called,…
/xnu-12377.1.9/iokit/DriverKit/
H A DIOExtensiblePaniclog.iig71 …* @param out The pointer to the created IOExtensiblePaniclog object. NULL in case of an erro…
122 * @param mem The pointer to the IOBufferMemoryDescriptor object
129 * @brief This function is called to get a pointer to the ext paniclog buffer
H A DIODispatchQueue.iig109 * @discussion Returns a pointer to the queues name. Only valid while the queue is retained.
110 * @return C-string pointer in the queues internal storage.
121 * @return C-string pointer in the queues internal storage.
H A DOSAction.iig101 * @brief Return a pointer to any state allocated by the OSAction creator.
104 …* @return A pointer to storage for the owner. It will be NULL if referenceSize was zero, and …
H A Dbounded_ptr.h180 bounded_ptr(T* pointer, T const* begin, T const* end)
196 if (__improbable(os_sub_overflow(reinterpret_cast<uintptr_t>(pointer),
/xnu-12377.1.9/doc/allocators/
H A Dapi-basics.md77 pointer in read-only memory (using `SECURITY_READ_ONLY_LATE` storage).
112 as attackers tend to use data/pointer overlaps to carry out their exploitations.
118 to denote when a data-looking type is actually a pointer.
134 - for union types, data/pointer overlaps should be avoided if possible.
195 <td>This should be used when the allocated type contains no kernel pointer only</td>
273 respectively. They expect both their pointer and size arguments to be
274 modifiable, and the pointer and size will be set to 0 together, in accordance
H A Dread-only.md59 read-only element should include a pointer back to the read/write side (a
66 chain from source pointer (e.g. thread) to destination data (e.g. credential).
99 macro that automatically zeroes the pointer after freeing.
/xnu-12377.1.9/libkern/conf/
H A DMakefile.template135 OSUnserialize.cpo_CXXWARNFLAGS_ADD += -Wno-zero-as-null-pointer-constant
136 OSUnserializeXML.cpo_CXXWARNFLAGS_ADD += -Wno-zero-as-null-pointer-constant
/xnu-12377.1.9/osfmk/conf/
H A DMakefile.x86_6437 locks_i386_opt.o_CFLAGS_ADD += -momit-leaf-frame-pointer -O2
/xnu-12377.1.9/osfmk/mach/machine/
H A Dmachine_types.defs68 * in kernel space as a pointer.
112 * maximum pointer, offset, etc... supported on the
/xnu-12377.1.9/tests/sched/
H A DMakefile15 sched/cluster_bound_threads: OTHER_CFLAGS += -Wno-int-to-void-pointer-cast
/xnu-12377.1.9/libkern/libclosure/
H A Druntime.cpp230 uintptr_t pointer = base + extendedOffset; in unwrap_relative_pointer() local
231 return (T *)pointer; in unwrap_relative_pointer()
/xnu-12377.1.9/libsyscall/
H A DLibsyscall.xcconfig26 …o-stack-protector -fno-stack-check -fno-builtin-calloc -momit-leaf-frame-pointer -DLIBSYSCALL_INTE…
/xnu-12377.1.9/tools/lldbmacros/
H A DMakefile42 core/pointer.py \
H A DREADME.md299 …Note that if your argument pointer is bad or the memory is corrupted lldb macros will fail with a …
318 …* As a convention, I suggest that for printing pointer values in hex use "{0: <#020x}".format(some…
412 …* The lldbmacros cannot divine the type of memory by inspection. If a wrong pointer is passed from…
421 …* In case of memory corruption, the lldbmacros may have followed wrong pointer dereferencing. This…
/xnu-12377.1.9/doc/mach_ipc/
H A Dkmsg.md375 - an unsigned pointer variant prefixed with `kext_`,
376 - a signed pointer (keeping its current name).
/xnu-12377.1.9/tests/unit/
H A DMakefile102 XNU_CFLAGS_EXTRA += -fsanitize=signed-integer-overflow,shift,pointer-overflow,bounds,object-size,vl…
/xnu-12377.1.9/bsd/man/man2/
H A Dgetdirentriesattr.2102 parameter is a pointer to an
132 by simply adding this length to your pointer.
/xnu-12377.1.9/makedefs/
H A DMakeInc.def199 -Wno-incompatible-function-pointer-types-strict
213 -Wno-error=null-pointer-subtraction \
215 -Wno-error=incompatible-function-pointer-types-strict \
417 …$(ARM64_EXTRA_BUILD_FLAGS) -mno-implicit-sme -momit-leaf-frame-pointer -fno-strict-aliasing -D__AP…
699 UBSAN_CHECKS += signed-integer-overflow shift pointer-overflow bounds object-size # non-fatal (call…

12