/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas_list.c | 44 mlist_add(struct mlist_head *new, struct mlist_head *head) in mlist_add() argument 46 __list_add(new, head, head->next); in mlist_add() 58 mlist_add_tail(struct mlist_head *new, struct mlist_head *head) in mlist_add_tail() argument 60 __list_add(new, head->prev, head); in mlist_add_tail() 93 mlist_empty(struct mlist_head *head) in mlist_empty() argument 95 return (head->next == head); in mlist_empty() 104 mlist_splice(struct mlist_head *list, struct mlist_head *head) in mlist_splice() argument 110 struct mlist_head *at = head->next; in mlist_splice() 112 first->prev = head; in mlist_splice() 113 head->next = first; in mlist_splice()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | error_map.h | 34 static inline int gsserrmap_init (struct gsserrmap__head *head) in gsserrmap_init() argument 36 head->first = NULL; in gsserrmap_init() 39 static inline void gsserrmap_destroy (struct gsserrmap__head *head) in gsserrmap_destroy() argument 44 for (e = head->first; e; e = e_next) { in gsserrmap_destroy() 52 head->first = NULL; in gsserrmap_destroy() 56 gsserrmap__find_node (struct gsserrmap__head *head, OM_uint32 key) in gsserrmap__find_node() argument 59 for (e = head->first; e; e = e->next) in gsserrmap__find_node() 66 gsserrmap_find (struct gsserrmap__head *head, OM_uint32 key) in gsserrmap_find() argument 86 gsserrmap_replace_or_insert (struct gsserrmap__head *head, in gsserrmap_replace_or_insert() argument 109 e->next = head->first; in gsserrmap_replace_or_insert() [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/ |
H A D | qede_list.h | 65 qede_list_t head; member 75 qede_list_t head; member 118 QEDE_LIST_ADD(qede_list_t *new, qede_list_t *head) in QEDE_LIST_ADD() argument 120 qede_list_add(new, head, head->next); in QEDE_LIST_ADD() 124 QEDE_LIST_ADD_TAIL(qede_list_t *new, qede_list_t *head) in QEDE_LIST_ADD_TAIL() argument 126 qede_list_add(new, head->prev, head); in QEDE_LIST_ADD_TAIL() 130 QEDE_LIST_REMOVE(qede_list_t *entry, qede_list_t *head) in QEDE_LIST_REMOVE() argument 152 qede_list_t *head) in qede_list_splice() argument 155 list_splice(list, head, head->next); in qede_list_splice() 161 qede_list_t *head) in qede_list_splice_tail() argument [all …]
|
/illumos-gate/usr/src/uts/sun4/io/efcode/ |
H A D | fc_subr.c | 335 rp->head = ip; in fc_add_resource() 465 *head = NULL; in fc_phandle_table_free() 517 *head = np; in fc_dip_to_phandle() 560 *head = np; in fc_add_dip_to_phandle() 584 return (*head); in fc_handle_to_dtree() 598 *head = dp; in fc_create_device_tree() 634 ASSERT(head && (*head != NULL)); in fc_remove_device_tree() 637 *head = NULL; in fc_remove_device_tree() 646 ASSERT(head && (*head != NULL)); in fc_remove_device_tree() 648 dp = *head; in fc_remove_device_tree() [all …]
|
/illumos-gate/usr/src/cmd/sgs/crle/common/ |
H A D | print.c | 190 Rtc_head *head; in scanconfig() local 217 head = (Rtc_head *) addr; in scanconfig() 330 if (head->ch_dlflags) in scanconfig() 362 if (head->ch_dlflags && in scanconfig() 376 if (head->ch_dlflags && in scanconfig() 386 if (head->ch_app) { in scanconfig() 432 if (head->ch_edlibpath) { in scanconfig() 489 if (head->ch_eslibpath) { in scanconfig() 549 if ((head->ch_version >= RTC_VER_THREE) && head->ch_env) { in scanconfig() 589 if ((head->ch_version >= RTC_VER_FOUR) && head->ch_fltr) { in scanconfig() [all …]
|
H A D | config.c | 64 Rtc_head *head; in genconfig() local 210 head = (Rtc_head *)addr; in genconfig() 215 head->ch_hash = hashoff; in genconfig() 219 head->ch_obj = objoff; in genconfig() 224 head->ch_file = fileoff; in genconfig() 228 head->ch_dir = diroff; in genconfig() 232 head->ch_env = envoff; in genconfig() 236 head->ch_fltr = fltroff; in genconfig() 244 head->ch_str = stroff; in genconfig() 517 head->ch_edlibpath = head->ch_str + (_strtbl - strtbl); in genconfig() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | gendeliv.c | 52 hdrlines[H_DAFWDFROM].head = hdrlines[H_AFWDFROM].head; 54 hdrlines[H_AFWDFROM].head = (struct hdrs *)NULL; 56 hdrlines[H_DRECEIVED].head = hdrlines[H_RECEIVED].head; 58 hdrlines[H_RECEIVED].head = (struct hdrs *)NULL; 60 hdrlines[H_DTCOPY].head = hdrlines[H_TCOPY].head; 62 hdrlines[H_TCOPY].head = (struct hdrs *)NULL; 107 hdrlines[H_TCOPY].head->value); 256 hdrlines[H_AFWDFROM].head = hdrlines[H_DAFWDFROM].head; 260 hdrlines[H_RECEIVED].head = hdrlines[H_DRECEIVED].head; 264 hdrlines[H_TCOPY].head = hdrlines[H_DTCOPY].head; [all …]
|
/illumos-gate/usr/src/lib/libc/amd64/unwind/ |
H A D | thrp_unwind.c | 49 __cleanup_t *head; in posix_stop_func() local 65 while ((head = *headp) != NULL && in posix_stop_func() 66 (caddr_t)cfa == head->fp + CFA_ADJUST) { in posix_stop_func() 67 *headp = head->next; in posix_stop_func() 68 (*head->func)(head->arg); in posix_stop_func() 86 __cleanup_t *head; in _thrp_unwind() local 109 while ((head = *headp) != NULL) { in _thrp_unwind() 110 *headp = head->next; in _thrp_unwind() 111 (*head->func)(head->arg); in _thrp_unwind()
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-header.p5m | 1742 link path=usr/share/man/man3head/aio.3head target=aio.h.3head 1744 link path=usr/share/man/man3head/ar.3head target=ar.h.3head 1772 link path=usr/share/man/man3head/ftw.3head target=ftw.h.3head 1776 link path=usr/share/man/man3head/grp.3head target=grp.h.3head 1780 link path=usr/share/man/man3head/if.3head target=if.h.3head 1782 link path=usr/share/man/man3head/in.3head target=in.h.3head 1788 link path=usr/share/man/man3head/ipc.3head target=ipc.h.3head 1810 link path=usr/share/man/man3head/msg.3head target=msg.h.3head 1822 link path=usr/share/man/man3head/pwd.3head target=pwd.h.3head 1835 link path=usr/share/man/man3head/sem.3head target=sem.h.3head [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfpool.c | 107 reg Sfio_t* head; local 116 head = p->sf[0]; 117 if(SFFROZEN(head) ) 120 SFLOCK(head,0); 128 { if(SFMODE(head,1) != SF_WRITE && _sfmode(head,SF_WRITE,1) < 0) 132 v = head->next - head->data; /* pending data */ 136 { if((w = SFWR(head,head->data,k,head->disc)) == k) 141 memcpy(head->data,(head->data+w),v); 143 head->next = head->data+v; 156 head->next = head->endr = head->endw = head->data; /* clear write buffer */ [all …]
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio_alloc.c | 240 aio_lio_t *head; in _aio_lio_alloc() local 257 for (i = 0, head = _lio_head_freelist; i < nelem; i++, head++) in _aio_lio_alloc() 258 head->lio_next = head + 1; in _aio_lio_alloc() 263 head = _lio_head_freelist; in _aio_lio_alloc() 270 ASSERT(head->lio_nent == 0 && head->lio_refcnt == 0); in _aio_lio_alloc() 271 head->lio_next = NULL; in _aio_lio_alloc() 272 head->lio_port = -1; in _aio_lio_alloc() 276 return (head); in _aio_lio_alloc() 285 ASSERT(head->lio_nent == 0 && head->lio_refcnt == 0); in _aio_lio_free() 288 (void) memset(head, 0, sizeof (*head)); in _aio_lio_free() [all …]
|
/illumos-gate/usr/src/lib/libsecdb/common/ |
H A D | getexecattr.c | 92 prev = head; in getexecprof() 98 head = NULL; in getexecprof() 101 return (head); in getexecprof() 137 return (head); in getexecuser() 145 if (head != NULL) { in getexecuser() 157 head = new; in getexecuser() 163 head = NULL; in getexecuser() 170 return (head); in getexecuser() 229 execattr_t *head; member 243 r->head = exec; in findexecattr() [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | defect.c | 71 int size, head; in read_list() local 119 for (head = 0; head < LISTCOUNT; head++) { in read_list() 124 (diskaddr_t)chs2bn(ncyl + 1, head, 0), 1, in read_list() 179 head = bt->bt_trksec >> 8; in read_list() 180 if ((bt->bt_cyl >= pcyl) || (head >= nhead) || in read_list() 300 if (def->head < ptr->head) in sort_defect() 302 if (def->head != ptr->head) in sort_defect() 322 int size, head, status; in write_deflist() local 360 for (head = 0; head < LISTCOUNT; head++) { in write_deflist() 362 (diskaddr_t)chs2bn(ncyl + 1, head, 0), 1, in write_deflist() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | send.c | 285 struct header head; in mail() local 305 head.h_to = buf; in mail() 306 head.h_subject = head.h_cc = head.h_bcc = head.h_defopt = NOSTR; in mail() 308 head.h_seq = 0; in mail() 338 head.h_to = NOSTR; in tmail() 339 head.h_subject = head.h_cc = head.h_bcc = head.h_defopt = NOSTR; in tmail() 341 head.h_seq = 0; in tmail() 359 head.h_subject = head.h_cc = head.h_bcc = head.h_defopt = NOSTR; in sendmail() 361 head.h_seq = 0; in sendmail() 380 head.h_subject = head.h_cc = head.h_bcc = head.h_defopt = NOSTR; in Sendmail() [all …]
|
/illumos-gate/usr/src/common/fs/ |
H A D | pcfs.c | 104 static fileid_t *head; variable 122 head->fi_back = head->fi_forw = head; in bpcfs_mountroot() 123 head->fi_filedes = 0; in bpcfs_mountroot() 124 head->fi_taken = 0; in bpcfs_mountroot() 127 head->fi_blocknum = 0; in bpcfs_mountroot() 130 if (diskread(head)) { in bpcfs_mountroot() 178 if (diskread(head)) { in bpcfs_mountroot() 215 filep->fi_forw = head; in bpcfs_open() 263 while ((filep = head->fi_forw) != head) in bpcfs_closeall() 270 head = NULL; in bpcfs_closeall() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ring_buffer_util.c | 85 rbuf->head = 0; in dapls_rbuf_alloc() 127 if (rbuf->head != rbuf->tail) { in dapls_rbuf_realloc() 208 pos = rbuf->head; in dapls_rbuf_add() 211 rbuf->head = (pos + 1) & rbuf->lim; in dapls_rbuf_add() 242 if (rbuf->head != rbuf->tail) { in dapls_rbuf_remove() 273 int head; in dapls_rbuf_count() local 277 head = rbuf->head; in dapls_rbuf_count() 280 if (head == tail) in dapls_rbuf_count() 282 if (head > tail) in dapls_rbuf_count() 283 return (head - tail); in dapls_rbuf_count() [all …]
|
H A D | dapl_cookie.c | 154 buffer->head = 0; in dapls_cb_create() 201 DAPL_ATOMIC head; in dapls_cb_resize() local 223 head = curr_buffer->head; in dapls_cb_resize() 226 while (head != tail) { in dapls_cb_resize() 227 new_buffer->pool[index] = curr_buffer->pool[head]; in dapls_cb_resize() 228 head = (head + 1) % curr_buffer->pool_size; in dapls_cb_resize() 231 new_buffer->head = 0; in dapls_cb_resize() 290 new_head = (buffer->head + 1) % buffer->pool_size; in dapls_cb_get() 296 buffer->head = new_head; in dapls_cb_get() 297 *cookie_ptr = &buffer->pool[buffer->head]; in dapls_cb_get()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_utils.c | 96 list_hdr->head.next = list_hdr->head.prev = &list_hdr->head; in oce_list_create() 105 list_hdr->head.next = list_hdr->head.prev = NULL; in oce_list_destroy() 113 OCE_LIST_NODE_T *head = &list_hdr->head; in oce_list_insert_tail() local 119 oce_list_insert_node(list_node, head->prev, head); in oce_list_insert_tail() 127 OCE_LIST_NODE_T *head = &list_hdr->head; in oce_list_insert_head() local 133 oce_list_insert_node(list_node, head, head->next); in oce_list_insert_head() 154 list_node = list_hdr->head.prev; in oce_list_remove_tail() 177 list_node = list_hdr->head.next; in oce_list_remove_head()
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/sol_ofs/ |
H A D | sol_ofs_common.h | 155 static inline void llist_add(llist_head_t *new, llist_head_t *head) in llist_add() argument 157 __llist_add(new, head, head->nxt); in llist_add() 160 static inline void llist_add_tail(llist_head_t *new, llist_head_t *head) in llist_add_tail() argument 162 __llist_add(new, head->prv, head); in llist_add_tail() 171 static inline int llist_is_last(llist_head_t *list, llist_head_t *head) in llist_is_last() argument 173 return (list->nxt == head); in llist_is_last() 176 static inline int llist_empty(llist_head_t *head) in llist_empty() argument 178 return (head->nxt == head); in llist_empty() 200 genlist_entry_t *head; member 209 for (_pos = (_head)->head; _pos; _pos = _pos->next) [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ds_drv.c | 584 ds_log_entry_t *head = ds_log.head; in ds_log_add() local 613 head = ds_log.head; in ds_log_remove() 616 if (head == NULL) in ds_log_remove() 619 if (head->next == ds_log.head) { in ds_log_remove() 623 head->next->prev = head->prev; in ds_log_remove() 624 head->prev->next = head->next; in ds_log_remove() 625 ds_log.head = head->next; in ds_log_remove() 629 head->datasz, DS_LOG_ENTRY_SZ(head)); in ds_log_remove() 651 head = ds_log.head; in ds_log_replace() 659 kmem_free(head->data, head->datasz); in ds_log_replace() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_ofs_gen_util.c | 66 list->head = new_entry; in add_genlist() 86 list->head = entry->next; in delete_genlist() 106 genlist_entry_t *entry = list->head; in remove_genlist_head() 108 if (list->head) { in remove_genlist_head() 109 list->head = list->head->next; in remove_genlist_head() 112 if (!list->head) in remove_genlist_head() 113 list->tail = list->head; in remove_genlist_head() 137 if (list->head != NULL) in genlist_empty() 153 list->head = entry; in insert_genlist_tail()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | sort.c | 69 struct ptr_list *head = l; in verify_seq_sorted() local 75 assert (l != head); in verify_seq_sorted() 227 struct ptr_list *head = *plist, *list = head; in sort_list() local 230 if (!head) in sort_list() 240 } while (list != head); in sort_list() 253 if (block2 == head) { in sort_list() 254 if (block1 == head) { in sort_list() 256 *plist = head; in sort_list() 268 if (next == head) { in sort_list() 281 if (block1 == head) { in sort_list() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_door.c | 392 ipmgmt_aobjmap_t *head; in ipmgmt_aobjop_handler() local 462 for (; head; head = head->am_next) { in ipmgmt_aobjop_handler() 477 if (head == NULL) { in ipmgmt_aobjop_handler() 501 for (; head; head = head->am_next) { in ipmgmt_aobjop_handler() 508 if (head == NULL) { in ipmgmt_aobjop_handler() 542 head = aobjmap.aobjmap_head; in i_ipmgmt_delif_aobjs() 543 for (; head; head = next) { in i_ipmgmt_delif_aobjs() 544 next = head->am_next; in i_ipmgmt_delif_aobjs() 547 prev = head; in i_ipmgmt_delif_aobjs() 562 head->am_lnum = -1; in i_ipmgmt_delif_aobjs() [all …]
|
H A D | ipmgmt_persist.c | 917 head = head->am_next; in ipmgmt_db_resetif() 1098 for (head = aobjmap.aobjmap_head; head != NULL; head = head->am_next) in i_ipmgmt_lookupadd_amnode() 1101 nextnum = (head == NULL ? 0 : head->am_nextnum); in i_ipmgmt_lookupadd_amnode() 1124 for (head = aobjmap.aobjmap_head; head != NULL; in i_ipmgmt_lookupadd_amnode() 1125 head = head->am_next) { in i_ipmgmt_lookupadd_amnode() 1158 for (; head != NULL; head = head->am_next) { in ipmgmt_aobjmap_op() 1181 for (head = aobjmap.aobjmap_head; head != NULL; in ipmgmt_aobjmap_op() 1182 head = head->am_next) { in ipmgmt_aobjmap_op() 1194 prev = head; in ipmgmt_aobjmap_op() 1210 head = head->am_next; in ipmgmt_aobjmap_op() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio.c | 1270 head = NULL; in alio() 1322 if (head) { in alio() 1335 if (head) { in alio() 1347 if (head) { in alio() 1363 if (head) { in alio() 1404 if (head) { in alio() 1485 if (head) { in alio() 1602 head = NULL; in aliowait() 2544 *head = liop; in aio_lio_alloc() 2969 head = NULL; in alioLF() [all …]
|