Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 679) sorted by relevance

12345678910>>...28

/titanic_41/usr/src/man/man3head/
H A DMakefile20 MANSECT= 3head
22 MANFILES= acct.h.3head \
23 aio.h.3head \
24 ar.h.3head \
25 archives.h.3head \
26 assert.h.3head \
27 complex.h.3head \
28 cpio.h.3head \
29 dirent.h.3head \
30 errno.h.3head \
[all …]
/titanic_41/usr/src/uts/common/sys/
H A Dqueue.h101 #define LIST_HEAD_INITIALIZER(head) \ argument
114 #define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field) \ argument
115 if ((head)->lh_first && \
116 (head)->lh_first->field.le_prev != &(head)->lh_first) \
117 panic("LIST_INSERT_HEAD %p %s:%d", (head), __FILE__, __LINE__);
129 #define QUEUEDEBUG_LIST_INSERT_HEAD(head, elm, field)
134 #define LIST_INIT(head) do { \ argument
135 (head)->lh_first = NULL; \
158 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
159 QUEUEDEBUG_LIST_INSERT_HEAD((head), (elm), field) \
[all …]
/titanic_41/usr/src/cmd/ssh/include/
H A Dsys-queue.h185 #define SLIST_HEAD_INITIALIZER(head) \ argument
196 #define SLIST_FIRST(head) ((head)->slh_first) argument
197 #define SLIST_END(head) NULL argument
198 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument
201 #define SLIST_FOREACH(var, head, field) \ argument
202 for((var) = SLIST_FIRST(head); \
203 (var) != SLIST_END(head); \
209 #define SLIST_INIT(head) { \ argument
210 SLIST_FIRST(head) = SLIST_END(head); \
218 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
[all …]
H A Dsys-tree.h81 #define SPLAY_ROOT(head) (head)->sph_root argument
82 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument
85 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
86 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
87 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
88 (head)->sph_root = tmp; \
91 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
92 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
93 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
94 (head)->sph_root = tmp; \
[all …]
/titanic_41/usr/src/cmd/sendmail/db/include/
H A Dshqueue.h55 #define SH_LIST_FIRSTP(head, type) \ argument
56 ((struct type *)(((u_int8_t *)(head)) + (head)->slh_first))
58 #define SH_LIST_FIRST(head, type) \ argument
59 ((head)->slh_first == -1 ? NULL : \
60 ((struct type *)(((u_int8_t *)(head)) + (head)->slh_first)))
75 #define SH_LIST_END(head) NULL argument
85 #define SH_LIST_INIT(head) (head)->slh_first = -1 argument
99 #define SH_LIST_INSERT_HEAD(head, elm, field, type) do { \ argument
100 if ((head)->slh_first != -1) { \
102 (head)->slh_first - SH_PTR_TO_OFF(head, elm); \
[all …]
H A Dqueue.h91 #define LIST_FIRST(head) ((head)->lh_first) argument
93 #define LIST_END(head) NULL argument
98 #define LIST_INIT(head) { \ argument
99 (head)->lh_first = NULL; \
117 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
118 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
119 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
120 (head)->lh_first = (elm); \
121 (elm)->field.le_prev = &(head)->lh_first; \
146 #define TAILQ_FIRST(head) ((head)->tqh_first) argument
[all …]
/titanic_41/usr/src/uts/common/io/drm/
H A Dqueue.h116 #define QMD_TRACE_HEAD(head) do { \ argument
117 (head)->trace.prevline = (head)->trace.lastline; \
118 (head)->trace.prevfile = (head)->trace.lastfile; \
119 (head)->trace.lastline = __LINE__; \
120 (head)->trace.lastfile = __FILE__; \
132 #define QMD_TRACE_HEAD(head) argument
145 #define SLIST_HEAD_INITIALIZER(head) \ argument
156 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
158 #define SLIST_FIRST(head) ((head)->slh_first) argument
160 #define SLIST_FOREACH(var, head, field) \ argument
[all …]
H A Ddrm_linux_list.h51 #define INIT_LIST_HEAD(head) { \ argument
52 (head)->next = head; \
53 (head)->prev = head; \
54 (head)->contain_ptr = (caddr_t)head; \
57 #define list_add(entry, head, con_ptr) { \ argument
58 (head)->next->prev = entry; \
59 (entry)->next = (head)->next; \
60 (entry)->prev = head; \
61 (head)->next = entry; \
65 #define list_add_tail(entry, head, con_ptr) { \ argument
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/include/
H A Ddb-queue.h99 #define LIST_INIT(head) { \ argument
100 (head)->lh_first = NULL; \
111 #define LIST_INSERT_HEAD(head, elm, field) { \ argument
112 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
113 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
114 (head)->lh_first = (elm); \
115 (elm)->field.le_prev = &(head)->lh_first; \
143 #define TAILQ_INIT(head) { \ argument
144 (head)->tqh_first = NULL; \
145 (head)->tqh_last = &(head)->tqh_first; \
[all …]
/titanic_41/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_llist.c64 dapl_llist_init_head(DAPL_LLIST_HEAD *head) in dapl_llist_init_head() argument
66 *head = NULL; in dapl_llist_init_head()
89 dapl_llist_is_empty(DAPL_LLIST_HEAD *head) in dapl_llist_is_empty() argument
91 return (*head == NULL); in dapl_llist_is_empty()
100 dapl_llist_add_head(DAPL_LLIST_HEAD *head, in dapl_llist_add_head() argument
107 if (dapl_llist_is_empty(head)) { in dapl_llist_add_head()
111 first = *head; in dapl_llist_add_head()
118 *head = entry; in dapl_llist_add_head()
120 entry->list_head = head; in dapl_llist_add_head()
129 dapl_llist_add_tail(DAPL_LLIST_HEAD *head, in dapl_llist_add_tail() argument
[all …]
/titanic_41/usr/src/uts/common/io/bnxe/577xx/include/
H A Dlistq.h78 s_list_entry_t *head; member
96 s_list->head = head_entry; in s_list_init()
107 s_list->head = (s_list_entry_t *) 0; in s_list_clear()
119 s_entry->next = s_list->head; in s_list_push_head()
125 s_list->head = s_entry; in s_list_push_head()
138 s_entry = s_list->head; in s_list_pop_head()
139 if(s_list->head) in s_list_pop_head()
141 s_list->head = s_list->head->next; in s_list_pop_head()
142 if(s_list->head == (s_list_entry_t *) 0) in s_list_pop_head()
168 s_list->head = s_entry; in s_list_push_tail()
[all …]
/titanic_41/usr/src/cmd/sendmail/include/sm/
H A Dtailq.h65 #define SM_TAILQ_HEAD_INITIALIZER(head) \ argument
66 { NULL, &(head).tqh_first }
77 #define SM_TAILQ_FIRST(head) ((head)->tqh_first) argument
78 #define SM_TAILQ_END(head) NULL argument
80 #define SM_TAILQ_LAST(head, headname) \ argument
81 (*(((struct headname *)((head)->tqh_last))->tqh_last))
85 #define SM_TAILQ_EMPTY(head) \ argument
86 (SM_TAILQ_FIRST(head) == SM_TAILQ_END(head))
88 #define SM_TAILQ_FOREACH(var, head, field) \ argument
89 for((var) = SM_TAILQ_FIRST(head); \
[all …]
/titanic_41/usr/src/lib/libc/port/aio/
H A Dposix_aio.c106 _lio_listio_cleanup(aio_lio_t *head) in _lio_listio_cleanup() argument
110 ASSERT(MUTEX_HELD(&head->lio_mutex)); in _lio_listio_cleanup()
111 if (head->lio_refcnt == 0) { in _lio_listio_cleanup()
112 ASSERT(head->lio_nent == 0); in _lio_listio_cleanup()
115 head->lio_waiting = 0; in _lio_listio_cleanup()
116 sig_mutex_unlock(&head->lio_mutex); in _lio_listio_cleanup()
118 _aio_lio_free(head); in _lio_listio_cleanup()
127 aio_lio_t *head = NULL; in lio_listio() local
201 head = _aio_lio_alloc(); in lio_listio()
202 if (head) { in lio_listio()
[all …]
/titanic_41/usr/src/cmd/syslogd/
H A Dlist.c36 ll_init(llh_t *head) in ll_init() argument
38 head->back = &head->front; in ll_init()
39 head->front = NULL; in ll_init()
42 ll_enqueue(llh_t *head, ll_t *data) in ll_enqueue() argument
45 *head->back = data; in ll_enqueue()
46 head->back = &data->n; in ll_enqueue()
54 ll_mapf(llh_t *head, void (*func)(void *)) in ll_mapf() argument
56 ll_t *t = head->front; in ll_mapf()
66 ll_peek(llh_t *head) in ll_peek() argument
68 return (head->front); in ll_peek()
[all …]
/titanic_41/usr/src/stand/lib/tcp/
H A Dtcp_sack.c56 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num) in tcp_sack_insert() argument
63 head[0].begin = begin; in tcp_sack_insert()
64 head[0].end = end; in tcp_sack_insert()
88 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
90 tmp[j].begin = head[i].begin; in tcp_sack_insert()
91 tmp[j].end = head[i].end; in tcp_sack_insert()
94 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
95 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
97 begin = head[i].begin; in tcp_sack_insert()
98 end = head[i].end; in tcp_sack_insert()
[all …]
/titanic_41/usr/src/uts/common/inet/tcp/
H A Dtcp_sack.c50 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num) in tcp_sack_insert() argument
57 head[0].begin = begin; in tcp_sack_insert()
58 head[0].end = end; in tcp_sack_insert()
82 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
84 tmp[j].begin = head[i].begin; in tcp_sack_insert()
85 tmp[j].end = head[i].end; in tcp_sack_insert()
88 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
89 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
91 begin = head[i].begin; in tcp_sack_insert()
92 end = head[i].end; in tcp_sack_insert()
[all …]
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dqueue.h68 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
70 #define SLIST_FIRST(head) ((head)->slh_first) argument
72 #define SLIST_FOREACH(var, head, field) \ argument
73 for ((var) = SLIST_FIRST((head)); \
77 #define SLIST_INIT(head) do { \ argument
78 SLIST_FIRST((head)) = NULL; \
86 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
87 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
88 SLIST_FIRST((head)) = (elm); \
93 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
[all …]
/titanic_41/usr/src/uts/common/io/mega_sas/
H A Dlist.h99 static void mlist_add(struct mlist_head *new, struct mlist_head *head) in mlist_add() argument
101 __list_add(new, head, head->next); in mlist_add()
113 static void mlist_add_tail(struct mlist_head *new, struct mlist_head *head) in mlist_add_tail() argument
115 __list_add(new, head->prev, head); in mlist_add_tail()
165 static int mlist_empty(struct mlist_head *head) in mlist_empty() argument
167 return (head->next == head); in mlist_empty()
176 static void mlist_splice(struct mlist_head *list, struct mlist_head *head) in mlist_splice() argument
182 struct mlist_head *at = head->next; in mlist_splice()
184 first->prev = head; in mlist_splice()
185 head->next = first; in mlist_splice()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_queue.c31 static void iscsi_enqueue_cmd_tail(iscsi_cmd_t **head, iscsi_cmd_t **tail,
59 queue->head = NULL; in iscsi_init_queue()
89 iscsi_enqueue_cmd_tail(&isp->sess_queue_pending.head, in iscsi_enqueue_pending_cmd()
94 iscsi_enqueue_cmd_head(&isp->sess_queue_pending.head, in iscsi_enqueue_pending_cmd()
115 rval = iscsi_dequeue_cmd(&isp->sess_queue_pending.head, in iscsi_dequeue_pending_cmd()
171 iscsi_enqueue_cmd_tail(&icp->conn_queue_active.head, in iscsi_enqueue_active_cmd()
173 } else if ((icp->conn_queue_active.head != NULL) && in iscsi_enqueue_active_cmd()
175 icp->conn_queue_active.head->cmd_lbolt_active)) { in iscsi_enqueue_active_cmd()
176 iscsi_enqueue_cmd_head(&icp->conn_queue_active.head, in iscsi_enqueue_active_cmd()
179 iscsi_enqueue_cmd_tail(&icp->conn_queue_active.head, in iscsi_enqueue_active_cmd()
[all …]
/titanic_41/usr/src/uts/common/io/aggr/
H A Daggr_recv.c84 mblk_t *cmp, *last, *head; in aggr_recv_cb() local
90 head = cmp = mp; in aggr_recv_cb()
94 if (head == cmp) { in aggr_recv_cb()
96 head = cmp->b_next; in aggr_recv_cb()
99 cmp = head; in aggr_recv_cb()
105 head); in aggr_recv_cb()
107 freemsgchain(head); in aggr_recv_cb()
109 head = cmp->b_next; in aggr_recv_cb()
112 cmp = head; in aggr_recv_cb()
126 if (head == cmp) { in aggr_recv_cb()
[all …]
/titanic_41/usr/src/cmd/lvm/metassist/common/
H A Dvolume_dlist.c101 dlist_t *head = NULL; in dlist_insert_ordered() local
107 head = item; in dlist_insert_ordered()
111 head = list; in dlist_insert_ordered()
120 if (iter == head) { in dlist_insert_ordered()
121 head = item; in dlist_insert_ordered()
142 return (head); in dlist_insert_ordered()
216 dlist_t *head = NULL; in dlist_remove() local
221 head = item->next; in dlist_remove()
226 head = item->prev; in dlist_remove()
233 for (; head != NULL && head->prev != NULL; head = head->prev); in dlist_remove()
[all …]
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dconfig_elf.c47 elf_config_validate(Addr addr, Rtc_head *head, Rt_map *lmp) in elf_config_validate() argument
65 if (head->ch_app) { in elf_config_validate()
69 obj = (Rtc_obj *)(head->ch_app + addr); in elf_config_validate()
112 for (dirtbl = (Rtc_dir *)(head->ch_dir + addr); in elf_config_validate()
199 Rtc_head *head; in elf_config() local
302 head = (Rtc_head *)addr; in elf_config()
307 if (head->ch_version > RTC_VER_CURRENT) in elf_config()
315 if (head->ch_cnflags & RTC_HDR_IGNORE) in elf_config()
321 if (head->ch_edlibpath) { in elf_config()
322 str = (const char *)(head->ch_edlibpath + addr); in elf_config()
[all …]
/titanic_41/usr/src/uts/common/io/mr_sas/
H A Dmr_sas_list.c44 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()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Derror_map.h34 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
68 struct gsserrmap__element *e = gsserrmap__find_node(head, key); in gsserrmap_find()
86 gsserrmap_replace_or_insert (struct gsserrmap__head *head, in gsserrmap_replace_or_insert() argument
[all …]
/titanic_41/usr/src/lib/libc/amd64/unwind/
H A Dthrp_unwind.c53 __cleanup_t *head; in posix_stop_func() local
69 while ((head = *headp) != NULL && in posix_stop_func()
70 (caddr_t)cfa == head->fp + CFA_ADJUST) { in posix_stop_func()
71 *headp = head->next; in posix_stop_func()
72 (*head->func)(head->arg); in posix_stop_func()
91 __cleanup_t *head; in _thrp_unwind() local
114 while ((head = *headp) != NULL) { in _thrp_unwind()
115 *headp = head->next; in _thrp_unwind()
116 (*head->func)(head->arg); in _thrp_unwind()

12345678910>>...28