| /xnu-11417.101.15/libkern/libkern/ |
| H A D | version.h.template | 6 * The contents of this file constitute Original Code as defined in and 26 /* Kernel versions conform to kext version strings, as described in: 66 /* OSTYPE, ostype, is a string as returned by uname -s */ 69 /* OSRELEASE, osrelease, is a string as returned by uname -r */ 105 /* osbuilder is a string as returned by uname -r */ 108 /* version is a string of the following form, as returned by uname -v:
|
| /xnu-11417.101.15/doc/scheduler/ |
| H A D | sched_clutch_edge.md | 7 …as interactive threads and low priority threads as batch threads. It then uses a timesharing model… 12 … clutch timesharing per cluster and adds other multi-cluster features such as thread placement, mi… 16 …l decisions at various thread grouping levels. The hierarchical scheduler, as its implemented toda… 24 …t are represented by a single entry at this level. These entries are known as *root buckets* throu… 28 … next for execution. Each root bucket with runnable threads is represented as an entry in a priori… 55 …as described above. The implementation allows extremely low latency CPU access for Above UI thread… 57 …ne ordering, the root bucket selection algorithm marks the low root bucket as being in "starvation… 74 …ch root hierarchy. Each clutch bucket with runnable threads is represented as an entry in a runque… 77 … of voluntary blocking time and CPU usage time for the clutch bucket group as a whole. This score … 82 …re pending execution for this clutch bucket group. This value is reset as soon as one of the threa… [all …]
|
| /xnu-11417.101.15/bsd/miscfs/devfs/ |
| H A D | README | 10 as the only devices that register themselves are the floppy, 15 There is a tree of nodes that describe the layout of the DEVFS as seen by 17 for reasons that will become obvious in a second. Think of it as a 24 to in the code as the dev_name. The devnode can be considered the inode. 30 Think of this as a Transparency, layed over the top of the blueprint. 44 Think of this as the ability to revise a transparency... 66 it is easily recovered.. Particularly as there will eventually be 71 I see 'mount -u' as a possible solution to recovering a broken dev tree. 85 nodes keep their own records as to which front nodes are members
|
| /xnu-11417.101.15/ |
| H A D | APPLE_LICENSE | 12 work as "Original Code" and stating that it is subject to the terms of 35 anyone other than You; and/or (b) to use Covered Code, alone or as 47 released as a series of files, a Modification is: (a) any addition to 53 work as originally made available by Apple under this License, 56 expressly identified by Apple as such in the header file(s) of such 88 copyright and other proprietary notices and disclaimers of Apple as 96 hereunder, except as permitted under Section 6. 118 below, for as long as you Externally Deploy the Covered Code or twelve 127 notice, in the code itself as well as in related documentation, 147 3. Your Grants. In consideration of, and as a condition to, the [all …]
|
| /xnu-11417.101.15/bsd/crypto/doc/ |
| H A D | KernelCrypto.txt | 9 * The implementation was written so as to conform with Netscapes SSL. 11 * This library is free for commercial and non-commercial use as long as 18 * Copyright remains Eric Young's, and as such any Copyright notices in 21 * as the author of the parts of the library used. 88 This software is provided 'as is' with no explicit or implied warranties 118 This software is provided 'as is' with no explicit or implied warranties 145 This software is provided 'as is' with no explicit or implied warranties
|
| /xnu-11417.101.15/doc/building/ |
| H A D | xnu_build_consolidation.md | 15 reduce the number of existing builds, as well as to set up a simple framework that makes it easier … 40 …ions provide r/o registers that can be checked at runtime to discover supported features as well as 64 understand or manage as new tunables are added or SoCs/revisions are deprecated. 66 The changes applied as part of this work focus mainly on: 76 `MIDR_EL1` register against a CPU revision that is passed as a parameter to the macro, where applic… 102 Changes applied as part of the XNU consolidation project include: 127 The L1 cache line size is still hardcoded, and defined as `MMU_CLINE`. Since this value is always t… 128 and very often checked at various places across XNU and elsewhere, it made sense to keep it as a co…
|
| H A D | xnu_version.md | 28 as described in [TN1132] 31 In particular, the string is formatted as: `J[.N[.R[S[L]]]]`, where:
|
| /xnu-11417.101.15/doc/primitives/ |
| H A D | atomics.md | 10 meant as a guide to best practices, and warns against a variety of possible 15 as this document builds on it, and explains the liberties XNU takes with said 30 by C11 as relaxed, consume, acquire, release, acq\_rel and seq\_cst. 61 does with other plain memory accesess such as coalescing, reordering, hoisting 105 as if their type was `_Atomic volatile` qualified. 109 where the name is the same as in C11 without the `memory_order_` prefix, 169 that involve more costly codegen (such as compare exchange loops). 241 for the failure case ordering, as it is what is used most of the time. 244 as `os_atomic_rmw_loop` offers a much better alternative for CAS-loops. 295 as these may cause the store-conditional to always fail. [all …]
|
| H A D | string-handling.md | 22 `strncmp` is always wrong with -fbounds-safety, and it's unavailable as a 105 string is passed without bounds as a NUL-terminated string to downstream users. 114 * `strbufcpy(a, alen, b, blen)`: like `strlcpy` but returns `a` as a NUL- 116 * `strlcpy_ret(dst, src, n)`: like `strlcpy`, but returns `dst` as a NUL- 118 * `strbufcat(a, alen, b, blen)`: like `strlcat` but returns `a` as a NUL- 131 NUL-terminated and returned as a NUL-terminated string pointer. 133 While you are modifying a string, you should reference its data as some flavor 136 suitable for modifications as bounds are determined by contents. Overwriting 169 NUL-terminated). Using `my_buffer` as an indexable pointer allows you to modify 240 of -fbounds-safety to guide you to the best choice, as a rule of thumb, you
|
| /xnu-11417.101.15/tools/tests/perf_index/ |
| H A D | README | 14 number of seconds it took to standard out as a decimal number. Some of the test 54 ram_file_create - same as file_create but on a ram disk 55 ram_file_read - same as file_read but on a ram disk 56 ram_file_write - same as file_write but on a ram disk 58 specified as args 65 /AppleInternal/CoreOS/perf_index. It is built as part of the xnu_quick_test
|
| /xnu-11417.101.15/doc/lifecycle/ |
| H A D | hibernation.md | 28 referred to as suspend to RAM (S2R). In this mode, IOKit delivers a number of 67 allocated for each one of these ranges (as well as a single bitmap for the 77 memory as usual, but any drivers required for hibernation I/O are left in a 89 * All pages are assumed to be saved (as part of the wired image) unless 101 resume, as well as some other data that is required by the platform booter. 121 the image); these include the pages already stored directly to the image, as 122 well as the stack that hibernation resume will run on. 178 table; this page table will later be modified as necessary while pages are 182 are readable/writable as necessary, and all of the rest of memory is mapped 188 we borrow free pages (as indicated by the page bitmaps) to store the [all …]
|
| /xnu-11417.101.15/libkdd/ |
| H A D | README.md | 12 The format for data is setup in a generic format as follows 44 extensible data format is that kernel can decide to put more information as required without requir… 76 to many subsystems. It includes data such as io stats, vm counters, process names/flags and syscall… 106 Now you can add this custom type definition into the buffer as
|
| /xnu-11417.101.15/doc/mach_ipc/ |
| H A D | kmsg.md | 81 As far as layout is concerned, an IPC kernel message is made of two halves: some 229 This layout should no longer be used otherwise, as it mixes kernel pointers and 434 a lot but more used as a serialization format, `mach_msg_header_t` is used 438 Instead, the header (and trailer) are signed with gPAC as soon as headers 444 of the message returned as a side effect of checking the signature. This 445 descriptor count is then used as the source of truth for indexing in
|
| /xnu-11417.101.15/doc/allocators/ |
| H A D | read-only.md | 21 as PAC, means that today's attacker favors data-only attacks to achieve 43 Data under the control of the Read-Only Allocator can be read from just as 44 cheaply and easily as other data, but writing to it must be done through the 79 boundaries such as labels, sandboxing, audit tokens, etc. 103 Think of this as a special `memcpy` to write into your elements.
|
| H A D | api-basics.md | 15 allocator implemented as a collection of zones of fixed size, and overflowing to 62 often more efficient than calling bzero as the allocator tends to maintain 63 freed memory as zeroed in the first place, 103 as its ABI has not yet converged. 112 as attackers tend to use data/pointer overlaps to carry out their exploitations. 287 should probably use OSObject as a base class. C++ operators 355 The ABI of `operator new[]` is unfortunate, as it denormalizes 360 context as this denormalized information is at the begining 387 purpose as its backing store should not contain kernel pointers.
|
| /xnu-11417.101.15/libkern/kmod/ |
| H A D | README | 5 # module and the libkmod module as well. 18 # If any static constructors are used .constructors_used will be left as
|
| /xnu-11417.101.15/osfmk/tests/ |
| H A D | README.md | 10 * Ability to check for assertions and panic path as well. 22 …ernPOST_config=8```" and only your test will be run. The configuration also takes ranges as follows 34 …cros for testing. Remember to add file_name.c in ```osfmk/conf/files``` or ```bsd/conf/files``` as 37 * To add a test function just declare a function with prototype as 40 * And add to struct xnupost_test array in osfmk/tests/kernel_tests.c or bsd/tests/bsd_tests.c as
|
| /xnu-11417.101.15/doc/arm/ |
| H A D | sme.md | 20 to xnu. It is not intended as a full programming guide for SVE or SME: readers 89 `PSTATE.{SM,ZA} = {0,0}` acts as a hint to the CPU that it may power down 90 SME-related hardware. Hence software should clear these bits as soon as 121 executed at EL0 and EL1 will interpret `SMPRI_EL1` as an index into 122 `SMPRIMAP_EL2` rather than as a raw priority value. 138 as described above. `SMIDR_EL1` accesses can trap to the hypervisor using the 168 implementation of `machine_switch_context()`, specifically as the routines 228 register state, xnu tries to keep the guest matrix state resident in the CPU as 229 long as possible, even when the guest traps to EL2. xnu will only spill the `ZA` 299 exception messages. Mach APIs that set exception ports, such as [all …]
|
| /xnu-11417.101.15/tools/lldbmacros/ |
| H A D | README.md | 26 lldb can be used for kernel debugging the same way as gdb. The simplest way is to start lldb with k… 101 The file layout is as follows 139 …command_name : name of command as registed using the @lldb_command decorator and described in 'kgm… 140 cmd_args : shell like arguments that are passed as is to the registered python function. 156 …nterface and core utility function so that any function/code can be called as a simple util functi… 158 (lldb)showtask 0xabcdef000 is same as python >>> GetTaskSummary(0xabcdef000) or equivalent 169 …- note that we use core.value class as an interface to underlying C structures. Refer [Section B] … 195 * Alternatively, you can use lldb`s command for script loading as 199 …It is very important that you do reload using xnudebug command as it does the plumbing of commands… 209 for registered summaries. We can define python functions and hook it up with lldb as callbacks for … [all …]
|
| /xnu-11417.101.15/config/ |
| H A D | Unused.arm64.exports | 1 # Symbols that are unused as KPI, but must be globally exported
|
| H A D | Unused.arm.exports | 1 # Symbols that are unused as KPI, but must be globally exported
|
| H A D | Unused.exports | 1 # Symbols that are unused as KPI, but must be globally exported
|
| /xnu-11417.101.15/osfmk/mach/machine/ |
| H A D | machine_types.defs | 7 * as defined in and that are subject to the Apple Public Source License 67 * a port in user space as an integer and 68 * in kernel space as a pointer.
|
| /xnu-11417.101.15/san/tools/ |
| H A D | kstksz | 128 -- It is possible that we redord BELOW event as first. Ignore it if we haven't seen 213 …-- When reading from a file, we can't use CoreSymbolication to symbolicate the stack frames as the…
|
| /xnu-11417.101.15/doc/debugging/ |
| H A D | task_ref.md | 60 kext will be dynamically assigned a reference group as needed (if there's 66 Task reference groups can be explored in `lldb` as follows: 92 The reference group hierarchy for a specific group can be displayed as follows:
|