Searched refs:tag (Results 1 - 25 of 81) sorted by relevance

1234

/darwin-on-arm/xnu/bsd/net/
H A Dif_vlan_var.h72 #define EVL_VLANOFTAG(tag) ((tag) & EVL_VLID_MASK)
73 #define EVL_PRIOFTAG(tag) (((tag) >> 13) & 7)
/darwin-on-arm/xnu/libkern/libkern/
H A DOSMalloc.h134 * Creates a tag for use with OSMalloc functions.
136 * @param name The name of the tag to create.
140 * An opaque tag to be used with OSMalloc functions for tracking memory usage.
166 * Frees a tag used with OSMalloc functions.
168 * @param tag The <code>@link OSMallocTag OSMallocTag@/link</code> to free.
177 extern void OSMalloc_Tagfree(OSMallocTag tag);
188 * @param tag The <code>@link OSMallocTag OSMallocTag@/link</code>
195 * If <code>tag</code> was created with the
203 OSMallocTag tag);
214 OSMallocTag tag);
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dkalloc.c325 void OSMalloc_Tagref(OSMallocTag tag);
326 void OSMalloc_Tagrele(OSMallocTag tag);
715 OSMallocTag tag)
717 if (!((tag->OSMT_state & OSMT_VALID_MASK) == OSMT_VALID))
718 panic("OSMalloc_Tagref():'%s' has bad state 0x%08X\n", tag->OSMT_name, tag->OSMT_state);
720 (void)hw_atomic_add(&tag->OSMT_refcnt, 1);
725 OSMallocTag tag)
727 if (!((tag->OSMT_state & OSMT_VALID_MASK) == OSMT_VALID))
728 panic("OSMalloc_Tagref():'%s' has bad state 0x%08X\n", tag
714 OSMalloc_Tagref( OSMallocTag tag) argument
724 OSMalloc_Tagrele( OSMallocTag tag) argument
742 OSMalloc_Tagfree( OSMallocTag tag) argument
757 OSMalloc( uint32_t size, OSMallocTag tag) argument
780 OSMalloc_nowait( uint32_t size, OSMallocTag tag) argument
799 OSMalloc_noblock( uint32_t size, OSMallocTag tag) argument
817 OSFree( void *addr, uint32_t size, OSMallocTag tag) argument
[all...]
H A Daffinity.c37 * shared by a task family, this controls affinity tag lookup and
41 * and which share an affinity tag in the owning namespace.
72 static affinity_set_t affinity_set_find(affinity_space_t aspc, uint32_t tag);
95 * Return the affinity tag for a thread.
101 uint32_t tag; local
104 tag = thread->affinity_set->aset_tag;
106 tag = THREAD_AFFINITY_TAG_NULL;
108 return tag;
114 * Place a thread in an affinity set identified by a tag.
118 thread_affinity_set(thread_t thread, uint32_t tag) argument
490 affinity_set_find(affinity_space_t space, uint32_t tag) argument
[all...]
H A Daffinity.h52 uint32_t aset_tag; /* user-assigned tag */
72 extern kern_return_t thread_affinity_set(thread_t thread, uint32_t tag);
/darwin-on-arm/xnu/iokit/Tests/
H A DTestDevice.cpp49 TestDeviceAction act, int tag, void *dataP)
51 return commQ->enqueueCommand(sleep, (void *) act, (void *) tag, dataP);
99 TestDevice::producer1Action(int tag) argument
101 logPrintf(("C1(%d) ", tag));
105 TestDevice::producer2Action(int tag, void *count) argument
107 logPrintf(("C2(%d,%d) ", tag, (int) count));
108 if ( !(tag % 10) )
48 enqueueCommand(bool sleep, TestDeviceAction act, int tag, void *dataP) argument
H A DTests.h95 TestDeviceAction act, int tag, void *dataP);
99 void producer1Action(int tag);
100 void producer2Action(int tag, void *inCount);
/darwin-on-arm/xnu/tools/tests/affinity/
H A Dtags.c44 thread_tag_set(thread_t thread, int tag) argument
49 policy.affinity_tag = tag;
91 int tag; local
127 printf(" %d: thread 0x%08x tag %d\n",
132 printf("Enter new tag or <return> to skip or ^D to quit\n");
134 tag = thread_tag_get(thread_array[i]);
135 printf(" %d: thread 0x%08x tag %d: ",
136 i, thread_array[i], tag);
145 tag = atoi(input);
146 thread_tag_set(thread_array[i], tag);
[all...]
H A Dpool.c37 * When affinity is enabled, each producer thread is tagged with an affinity tag
40 * work item, it sets its affinity to this tag. Hence consumer threads migrate
67 int tag; member in struct:work
174 affinity_set(int tag) argument
180 policy.affinity_tag = tag;
218 * set our tag to by our thread set number.
277 workp->tag = wp->setnum;
279 if (affinity && current_tag != workp->tag) {
280 affinity_set(workp->tag);
281 current_tag = workp->tag;
[all...]
/darwin-on-arm/xnu/libkern/libkern/c++/
H A DOSBoolean.h77 * @param tag Unused.
81 const void * tag,
124 * @param tag Unused.
126 virtual void taggedRetain(const void * tag) const;
H A DOSObject.h216 * @param tag Used for tracking collection references.
233 virtual void taggedRelease(const void * tag, const int freeWhen) const;
368 * tag used for reference-tracking.
370 * @param tag Used for tracking collection references.
381 virtual void taggedRetain(const void * tag = 0) const;
392 * @param tag Used for tracking collection references.
399 virtual void taggedRelease(const void * tag = 0) const;
400 // xx-review: used to say, "Remove a reference on this object with this tag, if an attempt is made to remove a reference that isn't associated with this tag the kernel will panic immediately", but I don't see that in the implementation
H A DOSSymbol.h166 * @param tag Used for tracking collection references.
176 const void * tag,
211 * @param tag Used for tracking collection references.
222 * <code>{ super::taggedRelease(tag) }</code>.
230 virtual void taggedRelease(const void * tag) const;
/darwin-on-arm/xnu/iokit/IOKit/
H A DIODeviceMemory.h54 @field tag 32-bit value not interpreted by IODeviceMemory or IOMemoryDescriptor, for use by the bus family. */
59 IOOptionBits tag; member in struct:IODeviceMemory::InitElement
63 @abstract Constructs an OSArray of IODeviceMemory instances, each describing one physical range, and a tag value.
64 @discussion This method creates IODeviceMemory instances for each physical range passed in an IODeviceMemory::InitElement array. Each element consists of a physical address, length and tag value for the IODeviceMemory. The instances are returned as a created OSArray.
/darwin-on-arm/xnu/bsd/netinet/
H A Ddhcp_options.c234 * the end tag.
241 uint8_t tag; local
246 tag = dhcptag_pad_e;
247 for (scan = (const uint8_t *)buffer; tag != dhcptag_end_e && len > 0; ) {
249 tag = scan[DHCP_TAG_OFFSET];
251 switch (tag) {
274 dprintf(("dhcp_options: parse failed near tag %d", tag));
294 dhcpol_find(dhcpol_t * list, int tag, int * len_p, int * start) argument
298 if (tag
473 dhcpoa_add(dhcpoa_t * oa_p, dhcptag_t tag, int len, const void * option) argument
[all...]
H A Ddhcp_options.h195 const void * dhcpol_find(dhcpol_t * list, int tag, int * len_p,
198 void * dhcpol_get(dhcpol_t * list, int tag, int * len_p);
251 dhcpoa_add(dhcpoa_t * oa_p, dhcptag_t tag, int len, const void * data);
259 dhcptag_t tag, int len, void * option);
H A Dip_encap.c534 struct m_tag *tag; local
537 tag = m_tag_create(KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_ENCAP,
540 if (tag != NULL) {
541 et = (struct encaptabtag*)(tag + 1);
543 m_tag_prepend(m, tag);
551 struct m_tag *tag; local
555 tag = m_tag_locate(m, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_ENCAP, NULL);
556 if (tag) {
557 et = (struct encaptabtag*)(tag + 1);
559 m_tag_delete(m, tag);
[all...]
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/
H A DBTreeNodeReserve.c59 void *nr_tag; /* unique tag (per thread) */
66 #define NR_HASH(btvp, tag) \
67 (&nr_hashtbl[((((intptr_t)(btvp)) >> 8) ^ ((intptr_t)(tag) >> 4)) & nr_hashmask])
256 void * tag = NR_GET_TAG(); local
262 nrhead = NR_HASH(btvp, tag);
265 if ((tmp_nrp->nr_tag == tag) && (tmp_nrp->nr_btvp == btvp)) {
276 nrp->nr_tag = tag;
288 void * tag = NR_GET_TAG(); local
292 if ((nrp->nr_tag != tag) || (nrp->nr_btvp != btvp))
313 void* tag local
[all...]
/darwin-on-arm/xnu/libkern/c++/
H A DOSBoolean.cpp85 void OSBoolean::taggedRetain(__unused const void *tag) const { }
86 void OSBoolean::taggedRelease(__unused const void *tag, __unused const int when) const { } argument
H A DOSUnserializeXML.y109 static void rememberObject(parser_state_t *state, int tag, OSObject *o);
110 static object_t *retrieveObject(parser_state_t *state, int tag);
285 char tag[TAG_MAX_LENGTH],
342 // </ end tag >
349 /* find end of tag while copying it */
351 tag[length++] = c;
356 tag[length] = 0;
358 // printf("tag %s, type %d\n", tag, tagType);
653 char tag[TAG_MAX_LENGT
[all...]
H A DOSUnserializeXML.cpp204 static void rememberObject(parser_state_t *state, int tag, OSObject *o);
205 static object_t *retrieveObject(parser_state_t *state, int tag);
1897 char tag[TAG_MAX_LENGTH],
1954 // </ end tag >
1961 /* find end of tag while copying it */
1963 tag[length++] = c;
1968 tag[length] = 0;
1970 // printf("tag %s, type %d\n", tag, tagType);
2265 char tag[TAG_MAX_LENGT
[all...]
H A DOSObject.cpp113 void OSObject::taggedRetain(const void *tag) const
121 if ((const void *) OSTypeID(OSCollection) == tag)
155 void OSObject::taggedRelease(const void *tag) const
157 taggedRelease(tag, 1);
160 void OSObject::taggedRelease(const void *tag, const int when) const argument
169 if ((const void *) OSTypeID(OSCollection) == tag)
H A DOSSerialize.cpp70 tag = 0;
91 // build a tag
92 snprintf(temp, sizeof(temp), "%u", tag++);
95 // add to tag dictionary
156 tag = 0;
/darwin-on-arm/xnu/security/
H A Dmac_net.c83 struct m_tag *tag; local
94 tag = m_tag_locate(mbuf, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_MACLABEL,
96 if (tag == NULL) {
101 label = (struct label *)(tag+1);
149 mac_mbuf_tag_init(struct m_tag *tag, int flag) argument
154 label = (struct label *) (tag + 1);
206 mac_mbuf_tag_destroy(struct m_tag *tag) argument
210 label = (struct label *)(tag + 1);
229 * mac_mbuf_tag_init() is called on the target tag
304 struct m_tag *tag; local
[all...]
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_hotfiles.h99 u_int8_t tag[32]; member in struct:HotFilesInfo
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/
H A Dccder.h95 size_t ccder_sizeof_tag(ccder_tag tag);
101 assuming a 1 byte tag. */
103 size_t ccder_sizeof(ccder_tag tag, size_t len);
110 /* Encode a tag backwards, der_end should point to one byte past the end of
111 destination for the tag, returns a pointer to the first byte of the tag.
114 uint8_t *ccder_encode_tag(ccder_tag tag, const uint8_t *der, uint8_t *der_end);
125 ccder_encode_tl(ccder_tag tag, size_t len, const uint8_t *der, uint8_t *der_end);
131 /* Encode the tag and length of a constructed object. der is the lower
134 encoding the tag an
[all...]

Completed in 124 milliseconds

1234