Searched refs:headp (Results 1 - 25 of 43) sorted by relevance

12

/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_queue.h71 #define L2_INIT(headp) \
72 (((headp)->l2_nextp = (headp)), ((headp)->l2_prevp = (headp)))
74 #define L2_EMPTY(headp) ((headp)->l2_nextp == (headp))
76 void L2_add(L2el_t *headp, L2el_t *elementp, void *priv);
78 void L2_add_head(L2el_t *headp, L2el_
[all...]
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_queue.h71 #define L2_INIT(headp) \
72 (((headp)->l2_nextp = (headp)), ((headp)->l2_prevp = (headp)))
74 #define L2_EMPTY(headp) ((headp)->l2_nextp == (headp))
76 void L2_add(L2el_t *headp, L2el_t *elementp, void *private);
78 void L2_add_head(L2el_t *headp, L2el_
[all...]
H A Dghd_queue.c116 L2_add(L2el_t *headp, L2el_t *elementp, void *private) argument
119 ASSERT(headp != NULL && elementp != NULL);
120 ASSERT(headp->l2_nextp != NULL);
121 ASSERT(headp->l2_prevp != NULL);
125 elementp->l2_nextp = headp;
126 elementp->l2_prevp = headp->l2_prevp;
127 headp->l2_prevp->l2_nextp = elementp;
128 headp->l2_prevp = elementp;
151 L2_add_head(L2el_t *headp, L2el_t *elementp, void *private) argument
154 ASSERT(headp !
176 L2_remove_head(L2el_t *headp) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_shash.c120 SH_TAILQ_HEAD(hash_head) *headp;
122 headp = (struct hash_head *)begin;
124 for (i = 0; i < nelements; i++, headp++)
125 SH_TAILQ_INIT(headp);
H A Ddb_dispatch.c183 DB_TXNHEAD *headp; local
186 if ((ret = __os_malloc(sizeof(DB_TXNHEAD), NULL, &headp)) != 0)
189 LIST_INIT(&headp->head);
190 headp->maxid = 0;
191 headp->generation = 1;
193 *(void **)retp = headp;
/illumos-gate/usr/src/lib/libc/amd64/unwind/
H A Dthrp_unwind.c52 __cleanup_t **headp = (__cleanup_t **)func_arg; local
69 while ((head = *headp) != NULL &&
71 *headp = head->next;
90 __cleanup_t **headp = &self->ul_clnup_hdr; local
109 (*fptr)(posix_stop_func, headp);
114 while ((head = *headp) != NULL) {
115 *headp = head->next;
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_shares.c61 fs_free_share_list(fs_sharelist_t *headp) argument
65 while (headp != NULL) {
66 tmp = headp->next;
67 free(headp->path);
68 free(headp->resource);
69 free(headp->fstype);
70 free(headp->options);
71 free(headp->description);
72 headp->next = NULL;
73 free(headp);
86 fs_sharelist_t *headp; local
[all...]
H A Dfs_mounts.c67 fs_free_mount_list(fs_mntlist_t *headp) { argument
70 while (headp != NULL) {
71 tmp = headp->next;
72 free(headp->resource);
73 free(headp->mountp);
74 free(headp->fstype);
75 free(headp->mntopts);
76 free(headp->time);
77 headp->next = NULL;
78 free(headp);
163 fs_mntlist_t *headp; local
274 fs_mntlist_t *headp; local
330 fs_mntlist_t *headp; local
[all...]
H A Dfs_mount_defaults.c71 void fs_free_mntdefaults_list(fs_mntdefaults_t *headp) { argument
74 while (headp != NULL) {
75 tmp = headp->next;
76 free(headp->resource);
77 free(headp->fsckdevice);
78 free(headp->mountp);
79 free(headp->fstype);
80 free(headp->fsckpass);
81 free(headp->mountatboot);
82 free(headp
98 fs_mntdefaults_t *headp; local
162 fs_mntdefaults_t *headp; local
[all...]
H A Dfs_dfstab.c133 free_dfstab_list(dfstab_entry_t *headp) argument
135 dfstab_entry_t *tmp = headp;
137 while (headp != NULL) {
138 tmp = headp->next;
139 if (headp->path != NULL) {
140 free(headp->path);
142 if (headp->resource != NULL) {
143 free(headp->resource);
145 if (headp->fstype != NULL) {
146 free(headp
699 dfstab_entry_t *headp = (dfstab_entry_t *)list; local
[all...]
H A Dlibfsmgt.h392 * fs_mntdefaults_t *headp - The pointer to the first element in the list
395 void fs_free_mntdefaults_list(fs_mntdefaults_t *headp);
442 * fs_mntlist_t *headp - The mount list to be freed.
676 * fs_sharelist_t *headp - the pointer to the first element in the list.
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_mnt.c206 struct mntpnt_list *headp; local
214 headp = NULL;
242 free_mnttab(headp);
247 if (headp == NULL) {
248 headp = currp;
260 free_mnttab(headp);
270 free_mnttab(headp);
284 free_mnttab(headp);
297 free_mnttab(headp);
301 if (headp
[all...]
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_util.c189 linkattr_add(dlmgmt_linkattr_t **headp, dlmgmt_linkattr_t *attrp) argument
191 if (*headp == NULL) {
192 *headp = attrp;
194 (*headp)->lp_prev = attrp;
195 attrp->lp_next = *headp;
196 *headp = attrp;
201 linkattr_rm(dlmgmt_linkattr_t **headp, dlmgmt_linkattr_t *attrp) argument
212 *headp = next;
216 linkattr_find(dlmgmt_linkattr_t *headp, const char *attr) argument
220 for (attrp = headp; attr
228 linkattr_set(dlmgmt_linkattr_t **headp, const char *attr, void *attrval, size_t attrsz, dladm_datatype_t type) argument
273 linkattr_unset(dlmgmt_linkattr_t **headp, const char *attr) argument
285 linkattr_get(dlmgmt_linkattr_t **headp, const char *attr, void **attrvalp, size_t *attrszp, dladm_datatype_t *typep) argument
301 linkattr_equal(dlmgmt_linkattr_t **headp, const char *attr, void *attrval, size_t attrsz) argument
528 dlmgmt_getattr_common(dlmgmt_linkattr_t **headp, const char *attr, dlmgmt_getattr_retval_t *retvalp) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Darcs.c359 nltype *headp; local
364 headp = childp->cyclehead;
365 if (childp == headp) {
394 headp->printflag = FALSE;
395 headp->propfraction = 0.0;
396 for (memp = headp->cnext; memp; memp = memp->cnext) {
399 if (arcp->arc_parentp->cyclehead == headp) {
403 headp->printflag |= parentp->printflag;
410 if (headp->ncall) {
411 headp
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo.c488 free_node_list(struct node_list **headp) argument
492 while (*headp) {
493 tmp = *headp;
494 *headp = (*headp)->next;
500 append_node_list(struct node_list **headp, struct node_list *list) argument
504 if (*headp == NULL) {
505 *headp = list;
512 tmp = *headp;
520 prepend_node_list(struct node_list **headp, struc argument
565 insert_node_list(struct node_list **headp, struct node_list *list, di_node_t parent) argument
640 prune_sib(struct node_list **headp) argument
703 update_node_list(int action, uint_t flag, struct node_list **headp) argument
772 walk_one_node(struct node_list **headp, uint_t flag, void *arg, int (*callback)(di_node_t, void *)) argument
778 flag & DI_WALK_MASK, headp); local
818 walk_one_minor_list(struct node_list **headp, const char *desired_type, uint_t flag, void *arg, int (*callback)(di_node_t, di_minor_t, void *)) argument
3579 walk_one_link(struct node_list **headp, uint_t ep, void *arg, int (*callback)(di_link_t link, void *arg)) argument
3644 walk_one_lnode(struct node_list **headp, void *arg, int (*callback)(di_lnode_t lnode, void *arg)) argument
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Daio_subr.c807 aio_req_t *headp; local
825 headp = aiop->aio_portq;
828 if ((reqp = headp) != NULL) {
837 } while ((reqp = next) != headp);
840 if (headp != NULL && exitflag == 0) {
846 aio_req_t *headprev = headp->aio_req_prev;
849 headp->aio_req_prev = newqprev;
852 newqprev->aio_req_next = headp;
854 aiop->aio_portq = headp;
1197 aio_req_t *headp; local
[all...]
/illumos-gate/usr/src/uts/common/sys/ib/clients/rds/
H A Drdsib_buf.h123 * nfree - Number of buffers in the pool(between headp and tailp).
124 * headp - First available buffer
166 void rds_free_send_buf(struct rds_ep_s *ep, rds_buf_t *headp,
/illumos-gate/usr/src/uts/common/io/pciex/
H A Dpciev.c54 pcie_domains_t **headp);
552 pcie_domains_t **headp)
557 if (*headp == NULL) {
558 *headp = pd;
563 pd->faulty_next = *headp;
564 (*headp)->faulty_prev = pd;
567 *headp = pd;
551 pcie_faulty_list_update(pcie_domains_t *pd, pcie_domains_t **headp) argument
/illumos-gate/usr/src/uts/common/disp/
H A Dsysdc.c673 sysdc_t *volatile *headp = &SYSDC_LIST(sdc)->sdl_list; local
683 head = *headp;
685 } while (atomic_cas_ptr(headp, head, sdc) != head);
732 sysdc_t *volatile *headp = &sdl->sdl_list; local
736 if (*headp == &sysdc_dummy)
751 head = atomic_swap_ptr(headp, &sysdc_dummy);
804 tail = *headp;
806 } while (atomic_cas_ptr(headp, tail, head) != tail);
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_utils.c691 ibcm_ud_state_data_t *prevp, *headp; local
710 headp = hcap->hca_sidr_list;
712 while (headp != NULL) {
714 if (headp == ud_statep) {
716 prevp->ud_nextp = headp->ud_nextp;
718 prevp = headp->ud_nextp;
723 prevp = headp;
724 headp = headp->ud_nextp;
H A Dibcm_impl.c1175 ibcm_hca_info_t *headp, *prevp = NULL; local
1183 headp = ibcm_hca_listp;
1184 while (headp != NULL) {
1185 if (headp == hcap) {
1190 prevp->hca_next = headp->hca_next;
1192 prevp = headp->hca_next;
1203 prevp = headp;
1204 headp = headp->hca_next;
/illumos-gate/usr/src/uts/sun4/os/
H A Dintr.c496 intr_dist_rem_list(struct intr_dist **headp, void (*func)(void *), void *arg) argument
502 for (iptr = *headp, vect = headp;
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_bitmap.c1080 dbmap_list_t *headp; local
1086 headp = &bmp->bm_lru;
1087 if (!headp)
1090 while (!TAILQ_EMPTY(headp)) {
1091 cp = TAILQ_FIRST(headp);
1092 TAILQ_REMOVE(headp, cp, c_lru);
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_flow.c284 flow_entry_t **headp, **p; local
319 headp = &ft->ft_table[index];
324 for (p = headp; *p != NULL; p = &(*p)->fe_next) {
340 err = ops->fo_insert_fe(ft, headp, flent);
1810 flow_generic_insert_fe(flow_tab_t *ft, flow_entry_t **headp, argument
1815 if (*headp != NULL) {
1817 flent->fe_next = *headp;
1819 *headp = flent;
2180 flow_ip_insert_fe(flow_tab_t *ft, flow_entry_t **headp, argument
2183 flow_entry_t **p = headp;
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_buf.c1035 rds_free_send_buf(rds_ep_t *ep, rds_buf_t *headp, rds_buf_t *tailp, uint_t nbuf, argument
1047 tmp = headp;
1053 tailp = headp;
1065 spool->pool_tailp->buf_nextp = headp;
1067 spool->pool_headp = headp;

Completed in 146 milliseconds

12