Lines Matching refs:dp

1023  *   _HANDLE_DESTROYED - dp's handle has been destroyed
1029 datael_attach(scf_datael_t *dp)
1031 scf_handle_t *h = dp->rd_handle;
1039 dp->rd_reset = 0; /* setup implicitly resets */
1048 request.rpr_entityid = dp->rd_entity;
1049 request.rpr_entitytype = dp->rd_type;
1519 datael_init(scf_datael_t *dp, scf_handle_t *h, uint32_t type)
1526 uu_list_node_init(dp, &dp->rd_node, datael_pool);
1528 dp->rd_handle = h;
1529 dp->rd_type = type;
1530 dp->rd_reset = 0;
1542 dp->rd_entity = handle_alloc_entityid(h);
1543 if (dp->rd_entity == 0) {
1545 uu_list_node_fini(dp, &dp->rd_node, datael_pool);
1549 ret = datael_attach(dp);
1551 (void) uu_list_insert_before(h->rh_dataels, NULL, dp);
1554 uu_list_node_fini(dp, &dp->rd_node, datael_pool);
1562 datael_destroy(scf_datael_t *dp)
1564 scf_handle_t *h = dp->rd_handle;
1570 uu_list_remove(h->rh_dataels, dp);
1575 request.rpr_entityid = dp->rd_entity;
1582 dp->rd_handle = NULL;
1586 datael_handle(const scf_datael_t *dp)
1588 return (handle_get(dp->rd_handle));
1596 datael_do_reset_locked(scf_datael_t *dp)
1598 scf_handle_t *h = dp->rd_handle;
1606 request.rpr_entityid = dp->rd_entity;
1611 dp->rd_reset = 0;
1615 datael_reset_locked(scf_datael_t *dp)
1617 assert(MUTEX_HELD(&dp->rd_handle->rh_lock));
1618 dp->rd_reset = 1;
1622 datael_reset(scf_datael_t *dp)
1624 scf_handle_t *h = dp->rd_handle;
1627 dp->rd_reset = 1;
1634 scf_datael_t *dp = (scf_datael_t *)dp_arg;
1636 if (dp->rd_reset)
1637 datael_do_reset_locked(dp);
1647 datael_get_name(const scf_datael_t *dp, char *buf, size_t size, uint32_t type)
1649 scf_handle_t *h = dp->rd_handle;
1657 request.rpr_entityid = dp->rd_entity;
1660 datael_finish_reset(dp);
1684 datael_get_parent(const scf_datael_t *dp, scf_datael_t *pp)
1686 scf_handle_t *h = dp->rd_handle;
1698 request.rpr_entityid = dp->rd_entity;
1701 datael_finish_reset(dp);
1728 datael_get_child_composed_locked(const scf_datael_t *dp, const char *name,
1735 scf_handle_t *h = dp->rd_handle;
1752 request.rpr_entity = dp->rd_entity;
1761 datael_finish_reset(dp);
1813 datael_get_child_locked(const scf_datael_t *dp, const char *name,
1819 scf_handle_t *h = dp->rd_handle;
1831 request.rpr_entityid = dp->rd_entity;
1839 datael_finish_reset(dp);
1862 datael_get_child(const scf_datael_t *dp, const char *name, uint32_t type,
1865 scf_handle_t *h = dp->rd_handle;
1914 ret = datael_get_child_composed_locked(dp, name, type, out,
1917 ret = datael_get_child_locked(dp, name, type, out);
1935 * cannot create children for dp's type of node
1939 * dp or cp has unknown id
1942 * dp cannot have children of type type
1944 * _EXISTS - dp & cp have the same id
1946 * _DELETED - dp has been deleted
1947 * _NOT_SET - dp is reset
1954 datael_add_child(const scf_datael_t *dp, const char *name, uint32_t type,
1957 scf_handle_t *h = dp->rd_handle;
1997 request.rpr_entityid = dp->rd_entity;
2001 datael_finish_reset(dp);
2025 datael_add_pg(const scf_datael_t *dp, const char *name, const char *type,
2028 scf_handle_t *h = dp->rd_handle;
2060 request.rpr_entityid = dp->rd_entity;
2064 datael_finish_reset(dp);
2089 datael_delete(const scf_datael_t *dp)
2091 scf_handle_t *h = dp->rd_handle;
2099 request.rpr_entityid = dp->rd_entity;
2101 datael_finish_reset(dp);
2338 datael_setup_iter(scf_iter_t *iter, const scf_datael_t *dp, uint32_t res_type,
2341 scf_handle_t *h = dp->rd_handle;
2357 request.rpr_entity = dp->rd_entity;
2363 datael_finish_reset(dp);
2381 datael_setup_iter_pgtyped(scf_iter_t *iter, const scf_datael_t *dp,
2384 scf_handle_t *h = dp->rd_handle;
2403 request.rpr_entity = dp->rd_entity;
2408 datael_finish_reset(dp);
3194 datael_update(scf_datael_t *dp)
3196 scf_handle_t *h = dp->rd_handle;
3205 request.rpr_entityid = dp->rd_entity;
3207 datael_finish_reset(dp);