/darwin-on-arm/xnu/bsd/kern/ |
H A D | tty_conf.c | 128 int slot = -1; local 134 slot = i; 138 slot = discipline; 141 if (slot != -1 && linesw_p) 142 linesw[slot] = *linesw_p; 144 return slot;
|
/darwin-on-arm/xnu/security/ |
H A D | mac_label.c | 92 mac_label_get(struct label *l, int slot) argument 96 return ((intptr_t) (l->l_perpolicy[slot].l_ptr)); 100 mac_label_set(struct label *l, int slot, intptr_t v) argument 104 l->l_perpolicy[slot].l_ptr = (void *) v;
|
H A D | mac_base.c | 775 int error, slot, static_entry = 0; local 844 slot = ffs(mac_slot_offsets_free); 845 if (slot == 0) { 849 slot--; 850 mac_slot_offsets_free &= ~(1 << slot); 851 *mpc->mpc_field_off = slot;
|
H A D | mac_policy.h | 6414 any load time flags, and optionally, a pointer to a label slot identifier. 6419 If the label slot identifier (mpc_field_off) is NULL, the Framework 6421 Framework will store the label location (slot) in this field. 6434 int *mpc_field_off; /** label slot */ 6561 #define MAC_POLICY_SET(handle, mpops, mpname, mpfullname, lnames, lcount, slot, lflags, rflags) \ 6569 .mpc_field_off = slot, \ 6602 intptr_t mac_label_get(struct label *l, int slot); 6603 void mac_label_set(struct label *l, int slot, intptr_t v);
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_init.c | 517 * unused slot. If no slots are available, return an 535 int slot; local 539 * Find the next empty slot; we recognize an empty slot by a 545 for (slot = 0; slot < maxvfsslots; slot++) { 546 if (vfsconf[slot].vfc_vfsops == NULL) 549 if (slot == maxvfsslots) { 561 slotp = &vfsconf[slot]; [all...] |
/darwin-on-arm/xnu/bsd/net/pktsched/ |
H A D | pktsched_cbq.c | 209 * find a free slot in the class table. if the slot matching 210 * the lower bits of qid is free, use this slot. otherwise, 211 * use the first free slot. 410 * first, try optimistically the slot matching the lower bits of 685 cbq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument 693 if (slot >= IFCQ_SC_MAX) 696 return (cbq_get_class_stats(cbqp, ifq->ifcq_disc_slots[slot].qid,
|
H A D | pktsched_qfq.c | 495 * Find a free slot in the class table. If the slot matching 496 * the lower bits of qid is free, use this slot. Otherwise, 497 * use the first free slot. 801 * XXX we should make sure that slot becomes less than 32. 809 u_int64_t slot = (roundedS - grp->qfg_S) >> grp->qfg_slot_shift; local 810 u_int32_t i = (grp->qfg_front + slot) % qif->qif_maxslots; 814 pktsched_bit_set(slot, &grp->qfg_full_slots); 818 * remove the entry from the slot 862 * because we use ffs() to find the first non-empty slot 1895 qfq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, struct if_ifclassq_stats *ifqs) argument [all...] |
H A D | pktsched_fairq.c | 1276 fairq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument 1284 if (slot >= IFCQ_SC_MAX) 1287 return (fairq_get_class_stats(fif, ifq->ifcq_disc_slots[slot].qid,
|
H A D | pktsched_priq.c | 1135 priq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument 1143 if (slot >= IFCQ_SC_MAX) 1146 return (priq_get_class_stats(pif, ifq->ifcq_disc_slots[slot].qid,
|
H A D | pktsched_tcq.c | 1076 tcq_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, argument 1084 if (slot >= IFCQ_SC_MAX) 1087 return (tcq_get_class_stats(tif, ifq->ifcq_disc_slots[slot].qid,
|
H A D | pktsched_hfsc.c | 562 * find a free slot in the class table. if the slot matching 563 * the lower bits of qid is free, use this slot. otherwise, 564 * use the first free slot. 722 log(LOG_DEBUG, "%s: %s destroyed qid=%d slot=%d\n", 960 "failed for qid=%d slot=%d, falling back " 1071 log(LOG_DEBUG, "%s: %s purge qid=%d slot=%d " 1147 log(LOG_DEBUG, "%s: %s update qid=%d slot=%d event=%s\n", 1743 log(LOG_WARNING, "%s: %s qid=%d slot=%d eff_rate unknown; " 1996 * first, try optimistically the slot matchin 2043 hfsc_getqstats_ifclassq(struct ifclassq *ifq, u_int32_t slot, struct if_ifclassq_stats *ifqs) argument [all...] |
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfsnode.h | 287 int8_t free; /* next unused slot */ 732 #define NACCESSVALID(np, slot) (((slot) >= 0) && ((slot) < NFS_ACCESS_CACHE_SIZE) && ((np)->n_accessstamp[(slot)] != ~0))
|
H A D | nfs_vnops.c | 450 * Find the slot in the access cache for this UID. 451 * If adding and no existing slot is found, reuse slots in FIFO order. 452 * The index of the next slot to use is kept in the last entry of the n_access array. 457 int slot; local 459 for (slot=0; slot < NFS_ACCESS_CACHE_SIZE; slot++) 460 if (np->n_accessuid[slot] == uid) 462 if (slot == NFS_ACCESS_CACHE_SIZE) { 465 slot 474 int error = 0, lockerror = ENOENT, status, slot; local 545 int error = 0, slot, dorpc; local [all...] |
H A D | nfs4_vnops.c | 85 int error = 0, lockerror = ENOENT, status, numops, slot; local 159 slot = nfs_node_access_slot(np, uid, 1); 160 np->n_accessuid[slot] = uid; 162 np->n_accessstamp[slot] = now.tv_sec; 163 np->n_access[slot] = access_result; 166 *access = np->n_access[slot];
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | tcp_subr.c | 1376 int slot; variable 1436 for (slot = 0; slot < N_TIME_WAIT_SLOTS; slot++) { 1439 for (inp = time_wait_slots[slot].lh_first; inp && i < n; inp = inpnxt) { 1563 int slot; variable 1623 for (slot = 0; slot < N_TIME_WAIT_SLOTS; slot++) { 1626 for (inp = time_wait_slots[slot] [all...] |