| /xnu-11215/osfmk/kern/ |
| H A D | task_ident.c | 81 port = token->port; in tidt_release() 107 tidt_release(token); in task_id_token_release() 113 task_id_token_t token; in task_id_token_no_senders() local 116 assert(token != NULL); in task_id_token_no_senders() 131 task_id_token_t token; in task_create_identity_token() local 156 token->port = IP_NULL; in task_create_identity_token() 160 *tokenp = token; in task_create_identity_token() 168 task_id_token_t token, in task_identity_token_get_task_grp() argument 312 return token; in convert_port_to_task_id_token() 332 return token->port; in convert_task_id_token_to_port() [all …]
|
| H A D | task_ref.h | 86 #define convert_task_suspension_token_to_port(token) convert_task_suspension_token_to_port_kernel(t… argument 88 #define task_resume2(token) task_resume2_kernel(token) argument 89 #define task_suspend2(task, token) task_suspend2_kernel(task, token) argument
|
| H A D | task_ident.h | 83 void task_id_token_release(task_id_token_t token); 85 ipc_port_t convert_task_id_token_to_port(task_id_token_t token); 90 kern_return_t task_identity_token_get_task_grp(task_id_token_t token, task_t *taskp, task_grp_t grp…
|
| /xnu-11215/bsd/skywalk/namespace/ |
| H A D | netns.h | 117 extern int netns_reserve_ephemeral(netns_token * token, 127 extern void netns_release(netns_token *token); 134 extern void netns_half_close(netns_token *token); 141 extern void netns_withdraw(netns_token *token); 160 extern int netns_change_addr(netns_token * token, 173 extern void netns_set_ifnet(netns_token *token, ifnet_t ifp); 242 return netns_reserve(token, &addr.s6_addr32[0], in netns_reserve_in6() 248 netns_change_addr_in(netns_token *token, struct in_addr addr) in netns_change_addr_in() argument 250 return netns_change_addr(token, &addr.s_addr, in netns_change_addr_in() 256 netns_change_addr_in6(netns_token *token, struct in6_addr addr) in netns_change_addr_in6() argument [all …]
|
| H A D | netns.c | 392 return token; in netns_ns_token_alloc() 954 nt = *token; in _netns_reserve_kpi_common() 1076 *token = nt; in _netns_reserve_kpi_common() 1429 nt = *token; in netns_release() 1489 nt = *token; in netns_change_addr() 1616 nt = *token; in netns_set_ifnet() 1671 nt = *token; in _netns_set_state() 1739 nt = *token; in netns_change_flags() 1911 token->nt_ifp != NULL ? token->nt_ifp->if_xname : "", in netns_local_port_scan_flow_entry() 1927 token->nt_flow_info, token->nt_flags); in netns_local_port_scan_flow_entry() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_namespace.c | 57 *token = NULL; in flow_namespace_create() 108 err = netns_reserve_ephemeral(token, addr, addr_len, protocol, in flow_namespace_create() 111 err = netns_reserve(token, addr, addr_len, protocol, in flow_namespace_create() 123 flow_namespace_destroy(netns_token *token) in flow_namespace_destroy() argument 125 netns_release(token); in flow_namespace_destroy() 129 flow_namespace_half_close(netns_token *token) in flow_namespace_half_close() argument 131 if (NETNS_TOKEN_VALID(token)) { in flow_namespace_half_close() 132 netns_half_close(token); in flow_namespace_half_close() 137 flow_namespace_withdraw(netns_token *token) in flow_namespace_withdraw() argument 139 if (NETNS_TOKEN_VALID(token)) { in flow_namespace_withdraw() [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOPerfControl.cpp | 221 token = index; in allocateToken() 247 return token; in allocateToken() 258 auto &entry = workTable[token]; in deallocateToken() 262 workTableNextIndex = token; in deallocateToken() 282 if (token >= workTableLength) { in getEntryForToken() 298 if (token >= workTableLength) { in markEntryStarted() 420 return token; in workSubmit() 455 markEntryStarted(token, true); in workSubmitAndBegin() 457 return token; in workSubmitAndBegin() 483 markEntryStarted(token, true); in workBegin() [all …]
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_purgeable.c | 62 struct token { struct 122 while (token) { in vm_purgeable_token_check_queue() 136 token = tokens[token].next; in vm_purgeable_token_check_queue() 246 assert(token); in vm_purgeable_token_add() 319 assert(token); in vm_purgeable_token_remove_first() 321 if (token) { in vm_purgeable_token_remove_first() 362 return token; in vm_purgeable_token_remove_first() 375 if (token) { in vm_purgeable_token_remove_last() 420 return token; in vm_purgeable_token_remove_last() 433 if (token) { in vm_purgeable_token_delete_first() [all …]
|
| /xnu-11215/tests/ |
| H A D | signal_exit_reason.c | 190 audit_token_t token = INVALID_AUDIT_TOKEN_VALUE; in __test_exit_reason_delegate_signal() local 193 audit_token_for_pid(child, &token); in __test_exit_reason_delegate_signal() 213 audit_token_t token = INVALID_AUDIT_TOKEN_VALUE; in __test_exit_reason_delegate_terminate() local 217 audit_token_for_pid(child, &token); in __test_exit_reason_delegate_terminate() 237 audit_token_t token = INVALID_AUDIT_TOKEN_VALUE; in __test_exit_reason_signal_with_audittoken() local 240 audit_token_for_pid(child, &token); in __test_exit_reason_signal_with_audittoken() 259 audit_token_t token = INVALID_AUDIT_TOKEN_VALUE; in __test_exit_reason_signal_with_audittoken_fail_bad_token() local 262 audit_token_for_pid(child, &token); in __test_exit_reason_signal_with_audittoken_fail_bad_token() 264 token.val[7] += 1; in __test_exit_reason_signal_with_audittoken_fail_bad_token() 296 audit_token_t token = INVALID_AUDIT_TOKEN_VALUE; in __test_exit_reason_signal_with_audittoken_fail_bad_signal() local [all …]
|
| H A D | proc_pidpath_audittoken.c | 13 audit_token_for_pid(pid_t pid, audit_token_t *token) in audit_token_for_pid() argument 25 err = task_info(task, TASK_AUDIT_TOKEN, (integer_t *)token, &info_size); in audit_token_for_pid() 74 audit_token_t token = INVALID_AUDIT_TOKEN_VALUE; in show_pidpaths() local 76 if (!audit_token_for_pid(pid, &token)) { in show_pidpaths() 81 token.val[5] = (unsigned int)pid; in show_pidpaths() 82 token.val[7] = (unsigned int)idversion_for_pid(pid); in show_pidpaths() 84 ret = proc_pidpath_audittoken(&token, buffer, sizeof(buffer)); in show_pidpaths() 93 token.val[7]--; /* Change to idversion so the next call fails */ in show_pidpaths() 94 ret = proc_pidpath_audittoken(&token, buffer, sizeof(buffer)); in show_pidpaths()
|
| H A D | task_ident_test.c | 25 task_id_token_t token; variable 28 kr = task_create_identity_token(mach_task_self(), &token); 32 …kr = task_identity_token_get_task_port(token, TASK_FLAVOR_CONTROL, &port2); /* Immovable control p… 40 kr = task_identity_token_get_task_port(token, TASK_FLAVOR_READ, &port2); 49 kr = task_identity_token_get_task_port(token, TASK_FLAVOR_INSPECT, &port2); 58 kr = task_identity_token_get_task_port(token, TASK_FLAVOR_NAME, &port2); 68 mach_port_deallocate(mach_task_self(), token);
|
| H A D | coalition_gpu_energy.c | 136 task_id_token_t token; variable 138 kern_return_t kr = task_create_identity_token(mach_task_self(), &token); 139 T_ASSERT_MACH_SUCCESS(kr, "task_create_identity_token() = 0x%x", token); 141 int ret = test_task_id_token_to_energy_id(token, &energy_id_out); 142 T_ASSERT_POSIX_SUCCESS(ret, "task_id_token_to_energy_id(0x%x) = %lld", token, energy_id_out); 146 kr = mach_port_deallocate(mach_task_self(), token); 147 T_ASSERT_MACH_SUCCESS(kr, "mach_port_deallocate(0x%x)", token);
|
| H A D | proc_info_udata.c | 11 uint64_t token = mach_absolute_time(); variable 15 udata = token; 34 T_ASSERT_EQ_ULLONG(token, udata, "proc_udata_info(): retrieved value matches token");
|
| H A D | uds-to-self.c | 39 audit_token_t token; variable 83 solen = sizeof(token); 84 (void)getsockopt(fd, SOL_LOCAL, LOCAL_PEERTOKEN, &token, &solen);
|
| H A D | exc_helpers.h | 53 typedef size_t (*exc_handler_protected_callback_t)(task_id_token_t token, uint64_t thread_d, 56 typedef size_t (*exc_handler_state_protected_callback_t)(task_id_token_t token, uint64_t thread_d,
|
| H A D | exception_tests.c | 30 task_id_token_t token, in exc_handler_identity_protected() argument 41 …kr = task_identity_token_get_task_port(token, TASK_FLAVOR_CONTROL, &port2); /* Immovable control p… in exc_handler_identity_protected()
|
| /xnu-11215/SETUP/config/ |
| H A D | parser.y | 37 %token BUILDDIR 38 %token COMMA 39 %token EQUALS 40 %token INIT 41 %token MACHINE 42 %token OBJECTDIR 43 %token OPTIONS 46 %token SEMICOLON 47 %token SOURCEDIR 48 %token TRACE [all …]
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | kmtriage.py | 14 def GetTokenMemberSafe(token, fn, member): argument 16 return fn(getattr(token, member)) 44 … token = kern.GetValueFromAddress(arg_addr, 'IOUserServerCheckInToken *') 46 … print('fServerName="' + GetTokenMemberSafe(token, GetString, 'fServerName') + '"') 47 … print('fExecutableName="' + GetTokenMemberSafe(token, GetString, 'fExecutableName') + '"') 48 … print('fKextBundleID="' + GetTokenMemberSafe(token, GetString, 'fKextBundleID') + '"') 49 … print('fServerTag=' + GetTokenMemberSafe(token, GetNumber, 'fServerTag'))
|
| /xnu-11215/bsd/sys/ |
| H A D | fsctl.h | 79 user64_addr_t token; member 85 user32_addr_t token; member 93 user_addr_t token; member 101 user64_addr_t token; member 117 user_addr_t token; member 126 user64_addr_t token; member 138 user32_addr_t token; member 150 user_addr_t token; member 164 int32_t *token; member 170 int32_t *token; member [all …]
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | IOWorkGroup.iig | 97 * @brief Get the size of the workgroup token. 98 …* @discussion Join() and Leave() require the caller to pass a token. This token should be allocat… 99 … no longer needed. Use this method to determine how much memory to allocate for the token. 100 * @return Workgroup token size 107 …* @discussion Before calling this method, the caller must allocate a token. This token must be pa… 108 * a workgroup with Leave(), use the same token that was passed to Join(). 109 * @param token The workgroup token. 113 Join(void * token) LOCALONLY; 117 …* @discussion The workgroup must have been joined with Join(). Use the same token in Join() for t… 118 * @param token The workgroup token. [all …]
|
| /xnu-11215/bsd/nfs/gss/ |
| H A D | gss_krb5_mech.c | 1191 printf("Bad mic TOK_ID %x %x\n", token->TOK_ID[0], token->TOK_ID[1]); in gss_krb5_cfx_verify_mic_token() 1236 token = mic_cfx_token; in gss_krb5_cfx_get_mic() 1247 header.value = &token; in gss_krb5_cfx_get_mic() 1256 memcpy(mic->value, &token, sizeof(token)); in gss_krb5_cfx_get_mic() 1283 token = mic_cfx_token; in gss_krb5_cfx_get_mic_mbuf() 1297 header.value = &token; in gss_krb5_cfx_get_mic_mbuf() 1306 memcpy(mic->value, &token, sizeof(token)); in gss_krb5_cfx_get_mic_mbuf() 1619 ec = (token.EC[0] << 8) | token.EC[1]; in gss_krb5_cfx_unwrap_mbuf() 1620 rrc = (token.RRC[0] << 8) | token.RRC[1]; in gss_krb5_cfx_unwrap_mbuf() 1645 token.RRC[0] = token.RRC[1] = 0; in gss_krb5_cfx_unwrap_mbuf() [all …]
|
| /xnu-11215/bsd/dev/arm/ |
| H A D | unix_signal.c | 184 regs->x[5] = token; in sendsig_set_thread_state64() 267 user32_addr_t token; member 579 user64_addr_t token; in sendsig() local 617 user32_addr_t token; in sendsig() local 636 user_frame.uf32.token = token; in sendsig() 869 user64_addr_t token; in sigreturn() local 873 if ((user64_addr_t)uap->token != token) { in sigreturn() 876 p->p_comm, proc_getpid(p), (user64_addr_t)uap->token, token); in sigreturn() 902 user32_addr_t token; in sigreturn() local 904 if ((user32_addr_t)uap->token != token) { in sigreturn() [all …]
|
| /xnu-11215/bsd/dev/i386/ |
| H A D | unix_signal.c | 105 user32_addr_t token; member 232 user64_addr_t token; in sendsig() local 403 tstate64->r9 = token; in sendsig() 408 user32_addr_t token; in sendsig() local 488 frame32.token = token; in sendsig() 830 user64_addr_t token; in sigreturn() local 861 if ((user64_addr_t)uap->token != token) { in sigreturn() 864 p->p_comm, proc_getpid(p), (user64_addr_t)uap->token, token); in sigreturn() 872 user32_addr_t token; in sigreturn() local 895 if ((user32_addr_t)uap->token != token) { in sigreturn() [all …]
|
| /xnu-11215/iokit/IOKit/perfcontrol/ |
| H A D | IOPerfControl.h | 128 virtual void workBegin(IOService *device, uint64_t token, WorkBeginArgs *args = nullptr); 154 …virtual void workEnd(IOService *device, uint64_t token, WorkEndArgs *args = nullptr, bool done = t… 366 void deallocateToken(uint64_t token); 367 WorkTableEntry *getEntryForToken(uint64_t token); 368 void markEntryStarted(uint64_t token, bool started); 369 inline uint64_t tokenToGlobalUniqueToken(uint64_t token);
|
| /xnu-11215/osfmk/ipc/ |
| H A D | mach_debug.c | 515 task_id_token_t token; in mach_port_kobject_description() local 516 token = (task_id_token_t)ipc_kobject_get_stable(port, IKOT_TASK_ID_TOKEN); in mach_port_kobject_description() 517 …tf(desc, KOBJECT_DESCRIPTION_LENGTH, "%d,%llu,%d", token->ident.p_pid, token->ident.p_uniqueid, to… in mach_port_kobject_description()
|