| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSSharedPtr.h | 125 template <typename To, typename From> 126 OSSharedPtr<To> 129 return OSSharedPtr<To>(static_cast<To*>(ptr.get()), OSRetain); in OSStaticPtrCast() 132 template <typename To, typename From> 133 OSSharedPtr<To> 136 return OSSharedPtr<To>(static_cast<To*>(ptr.detach()), OSNoRetain); in OSStaticPtrCast() 139 template <typename To, typename From> 140 OSSharedPtr<To> 143 return OSSharedPtr<To>(const_cast<To*>(ptr.get()), OSRetain); in OSConstPtrCast() 147 OSSharedPtr<To> [all …]
|
| H A D | intrusive_shared_ptr.h | 475 intrusive_shared_ptr<To, R> 478 return intrusive_shared_ptr<To, R>(static_cast<To*>(ptr.get()), retain); 481 intrusive_shared_ptr<To, R> 484 return intrusive_shared_ptr<To, R>(static_cast<To*>(ptr.detach()), no_retain); 501 intrusive_shared_ptr<To, R> 504 return intrusive_shared_ptr<To, R>(const_cast<To*>(ptr.get()), retain); 507 intrusive_shared_ptr<To, R> 510 return intrusive_shared_ptr<To, R>(const_cast<To*>(ptr.detach()), no_retain); 532 intrusive_shared_ptr<To, R> 535 return intrusive_shared_ptr<To, R>(reinterpret_cast<To*>(ptr.get()), retain); [all …]
|
| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | reinterpret_cast.cpp | 33 template <typename Stored, typename From, typename To> 41 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests() 42 _assert(to.discard_bounds() == reinterpret_cast<To const*>(from.discard_bounds())); in tests() 47 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests() 48 _assert(to.discard_bounds() == reinterpret_cast<To const volatile*>(from.discard_bounds())); in tests() 54 test_bounded_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests() 61 libkern::bounded_ptr<To, non_default_policy> to = libkern::reinterpret_pointer_cast<To>(from); in tests() 62 _assert(to.discard_bounds() == reinterpret_cast<To const*>(from.discard_bounds())); in tests()
|
| H A D | ctor.convert.cpp | 42 template <typename Stored, typename From, typename To> 51 test_bounded_ptr<To> to = from; // conversion (implicit) in tests() 52 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests() 56 test_bounded_ptr<To> to(from); // conversion (explicit) in tests() 57 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests() 61 test_bounded_ptr<To> to{from}; // conversion (explicit) in tests() 62 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests() 66 test_bounded_ptr<To> to = static_cast<test_bounded_ptr<To> >(from); // conversion (explicit) in tests() 67 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests() 73 test_bounded_ptr<To> to = from; // conversion (implicit) in tests() [all …]
|
| H A D | assign.convert.cpp | 41 template <typename Stored, typename From, typename To> 51 test_bounded_ptr<To> to; in tests() 52 test_bounded_ptr<To>& ref = (to = from); in tests() 53 _assert(to.discard_bounds() == static_cast<To const*>(ptr1)); in tests() 60 test_bounded_ptr<To> to(ptr2, array.begin(), array.end()); in tests() 63 test_bounded_ptr<To>& ref = (to = from); in tests() 71 test_bounded_ptr<To> to; in tests() 72 test_bounded_ptr<To>& ref = (to = from); in tests() 80 libkern::bounded_ptr<To, dummy_policy2> to; in tests() 81 libkern::bounded_ptr<To, dummy_policy2>& ref = (to = from); in tests() [all …]
|
| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | cast.const.cpp | 17 template <typename Stored, typename From, typename To> 26 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(from); in tests() 29 CHECK(to.get() == const_cast<To*>(&obj)); in tests() 35 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(std::move(from)); in tests() 38 CHECK(to.get() == const_cast<To*>(&obj)); in tests() 46 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(from); in tests() 55 tracked_shared_ptr<To> to = libkern::const_pointer_cast<To>(std::move(from)); in tests()
|
| H A D | cast.reinterpret.cpp | 21 template <typename Stored, typename From, typename To> 30 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests() 33 CHECK(to.get() == reinterpret_cast<To const*>(&obj)); in tests() 39 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(std::move(from)); in tests() 42 CHECK(to.get() == reinterpret_cast<To const*>(&obj)); in tests() 50 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(from); in tests() 59 tracked_shared_ptr<To> to = libkern::reinterpret_pointer_cast<To>(std::move(from)); in tests()
|
| H A D | cast.static.cpp | 26 template <typename Stored, typename From, typename To> 35 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(from); in tests() 38 CHECK(to.get() == static_cast<To const*>(&obj)); in tests() 44 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(std::move(from)); in tests() 47 CHECK(to.get() == static_cast<To const*>(&obj)); in tests() 55 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(from); in tests() 64 tracked_shared_ptr<To> to = libkern::static_pointer_cast<To>(std::move(from)); in tests()
|
| H A D | assign.copy.cpp | 27 template <typename Stored, typename From, typename To> 37 tracked_shared_ptr<To> to(&obj2, libkern::retain); in tests() 39 tracked_shared_ptr<To>& ref = (to = from); in tests() 50 tracked_shared_ptr<To> to = nullptr; in tests() 52 tracked_shared_ptr<To>& ref = (to = from); in tests() 63 tracked_shared_ptr<To> to(&obj2, libkern::retain); in tests() 65 tracked_shared_ptr<To>& ref = (to = from); in tests() 76 tracked_shared_ptr<To> to = nullptr; in tests() 78 tracked_shared_ptr<To>& ref = (to = from); in tests()
|
| H A D | assign.move.cpp | 28 template <typename Stored, typename From, typename To> 38 tracked_shared_ptr<To> to(&obj2, libkern::retain); in tests() 40 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() 51 tracked_shared_ptr<To> to = nullptr; in tests() 53 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() 64 tracked_shared_ptr<To> to(&obj2, libkern::retain); in tests() 66 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests() 77 tracked_shared_ptr<To> to = nullptr; in tests() 79 tracked_shared_ptr<To>& ref = (to = std::move(from)); in tests()
|
| H A D | ctor.copy.cpp | 28 template <typename Stored, typename From, typename To> 38 libkern::intrusive_shared_ptr<To, test_policy> to(from); // explicit in tests() 45 libkern::intrusive_shared_ptr<To, test_policy> to{from}; // explicit in tests() 52 libkern::intrusive_shared_ptr<To, test_policy> to = from; // implicit in tests() 61 libkern::intrusive_shared_ptr<To, test_policy> to = from; in tests()
|
| H A D | ctor.move.cpp | 29 template <typename Stored, typename From, typename To> 42 libkern::intrusive_shared_ptr<To, test_policy> to(std::move(from)); // explicit in tests() 53 libkern::intrusive_shared_ptr<To, test_policy> to{std::move(from)}; // explicit in tests() 64 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); // implicit in tests() 74 libkern::intrusive_shared_ptr<To, test_policy> to = std::move(from); in tests()
|
| /xnu-11215/doc/debugging/ |
| H A D | task_ref.md | 15 To grab a reference: 20 To release a reference: 37 hierarchical. To help with debugging the following task reference group 105 groups. To enable backtrace logging and reference group statistics, the `rlog` 111 To enable statistics for all reference groups and backtrace logging for the
|
| /xnu-11215/ |
| H A D | README.md | 40 To build a kernel for the same architecture as running OS, just type 58 To install the kernel into a DSTROOT, use the `install_kernels` target: 85 * To build with RELEASE kernel configuration 137 To test the xnu kernel, you need to build a kernelcache that links the kexts and 139 To build a kernelcache you can use the following mechanisms: 229 a. `DATAFILES` : To make header file available in user level - 240 d. `EMBEDDED_PRIVATE_DATAFILES` : To make header file available in user 246 e. `KERNELFILES` : To make header file available in kernel level - 250 f. `PRIVATE_KERNELFILES` : To make header file available to Apple internal 254 g. `MODULEMAPFILES` : To make module map file available in user level - [all …]
|
| /xnu-11215/tools/cocci/ |
| H A D | zalloc-data.cocci | 1 // To apply, at the top of xnu.git:
|
| H A D | zalloc-zero.cocci | 1 // To apply, at the top of xnu.git:
|
| H A D | zalloc-nofail.cocci | 1 // To apply, at the top of xnu.git:
|
| H A D | c11_atomic_builtin_rewrite.cocci | 1 // To apply, at the top of xnu.git:
|
| H A D | hw_atomic_rewrite.cocci | 1 // To apply, at the top of xnu.git:
|
| H A D | os_atomic_normalize.cocci | 1 // To apply, at the top of xnu.git:
|
| /xnu-11215/tools/tests/MPMMTest/ |
| H A D | README | 3 These tests measure the speed of IPC with mach messaging and kqueues. To build,
|
| /xnu-11215/osfmk/kern/ |
| H A D | kcdata.modulemap | 6 // SRCROOT. To get around that, libkdd uses <kcdata.h> to not match anything in
|
| H A D | kern_debug.modulemap | 11 // mapping to the new one in SRCROOT. To get around that, libkdd uses
|
| /xnu-11215/config/ |
| H A D | README.DEBUG-kernel.txt | 10 To install the DEBUG kernel, do:
|
| /xnu-11215/doc/allocators/ |
| H A D | read-only.md | 53 To make best use of the Read-Only Allocator, some simple advice should be 84 Read-only zones cannot be created after lockdown. To create a new read-only
|