Lines Matching defs:npp

878 	rc_node_t **npp;
884 for (npp = &bp->cb_head; *npp != NULL; npp = &(*npp)->rn_hash_next)
885 if (*npp == np)
888 assert(*npp == np);
889 *npp = np->rn_hash_next;
2763 rc_node_ptr_free_mem(rc_node_ptr_t *npp)
2765 if (npp->rnp_auth_string != NULL) {
2766 free((void *)npp->rnp_auth_string);
2767 npp->rnp_auth_string = NULL;
2839 rc_node_ptr_check_and_lock(rc_node_ptr_t *npp, int *res)
2841 rc_node_t *np = npp->rnp_node;
2843 if (npp->rnp_deleted)
2853 rc_node_clear(npp, 1);
2877 #define RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp) { \
2879 if (((np) = rc_node_ptr_check_and_lock(npp, &rc__res)) == NULL) \
2883 #define RC_NODE_PTR_CHECK_LOCK_OR_FREE_RETURN(np, npp, mem) { \
2885 if (((np) = rc_node_ptr_check_and_lock(npp, &rc__res)) == \
2893 #define RC_NODE_PTR_GET_CHECK(np, npp) { \
2894 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp); \
2898 #define RC_NODE_PTR_GET_CHECK_AND_HOLD(np, npp) { \
2899 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp); \
2913 #define HOLD_PTR_FLAG_OR_FREE_AND_RETURN(np, npp, flag, mem) { \
2917 assert((np) == (npp)->rnp_node); \
2918 rc_node_clear(npp, 1); \
2943 * _NOT_SET - npp is not set
2944 * _DELETED - the node npp pointed at has been deleted
2949 rc_scope_parent_scope(rc_node_ptr_t *npp, uint32_t type, rc_node_ptr_t *out)
2955 RC_NODE_PTR_GET_CHECK(np, npp);
2976 rc_node_name(rc_node_ptr_t *npp, char *buf, size_t sz, uint32_t answertype,
2984 RC_NODE_PTR_GET_CHECK(np, npp);
3055 rc_node_get_property_type(rc_node_ptr_t *npp, rep_protocol_value_type_t *out)
3059 RC_NODE_PTR_GET_CHECK(np, npp);
3144 rc_node_ptr_parent(rc_node_ptr_t *npp, rc_node_t **out)
3148 RC_NODE_PTR_GET_CHECK(np, npp);
3155 * _NOT_SET - npp is not set
3156 * _DELETED - the node npp pointed at has been deleted
3157 * _TYPE_MISMATCH - npp's node's parent is not of type type
3159 * If npp points to a scope, can also fail with
3163 rc_node_get_parent(rc_node_ptr_t *npp, uint32_t type, rc_node_ptr_t *out)
3168 if (npp->rnp_node != NULL &&
3169 npp->rnp_node->rn_id.rl_type == REP_PROTOCOL_ENTITY_SCOPE)
3170 return (rc_scope_parent_scope(npp, type, out));
3172 if ((rc = rc_node_ptr_parent(npp, &pnp)) != REP_PROTOCOL_SUCCESS) {
3189 rc_node_parent_type(rc_node_ptr_t *npp, uint32_t *type_out)
3194 if (npp->rnp_node != NULL &&
3195 npp->rnp_node->rn_id.rl_type == REP_PROTOCOL_ENTITY_SCOPE) {
3200 if ((rc = rc_node_ptr_parent(npp, &pnp)) != REP_PROTOCOL_SUCCESS)
3220 rc_node_get_child(rc_node_ptr_t *npp, const char *name, uint32_t type,
3227 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);
3268 rc_node_update(rc_node_ptr_t *npp)
3271 rc_node_t *np = npp->rnp_node;
3297 rc_node_clear(npp, 1);
3321 rc_node_assign(npp, nnp); /* updated */
3330 rc_node_assign(npp, nnp); /* updated */
3871 * _NOT_SET - npp is reset
3885 rc_node_create_child(rc_node_ptr_t *npp, uint32_t type, const char *name,
3921 RC_NODE_PTR_CHECK_LOCK_OR_FREE_RETURN(np, npp, audit_data.ed_auth);
3969 HOLD_PTR_FLAG_OR_FREE_AND_RETURN(np, npp, RC_NODE_CREATING_CHILD,
3996 rc_node_create_child_pg(rc_node_ptr_t *npp, uint32_t type, const char *name,
4019 RC_NODE_PTR_GET_CHECK_AND_HOLD(np, npp);
4120 HOLD_PTR_FLAG_OR_FREE_AND_RETURN(np, npp, RC_NODE_CREATING_CHILD,
4696 rc_node_delete(rc_node_ptr_t *npp)
4711 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);
4816 rc_node_clear(npp, 1);
4830 rc_node_clear(npp, 1);
4986 rc_node_clear(npp, 1);
5007 rc_node_clear(npp, 1);
5026 rc_node_next_snaplevel(rc_node_ptr_t *npp, rc_node_ptr_t *cpp)
5034 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);
5062 rc_node_clear(npp, 1);
5075 rc_node_clear(npp, 1);
5396 rc_snapshot_take_new(rc_node_ptr_t *npp, const char *svcname,
5436 RC_NODE_PTR_CHECK_LOCK_OR_FREE_RETURN(np, npp, audit_data.ed_auth);
5483 HOLD_PTR_FLAG_OR_FREE_AND_RETURN(np, npp, RC_NODE_CREATING_CHILD,
5508 rc_snapshot_take_attach(rc_node_ptr_t *npp, rc_node_ptr_t *outpp)
5512 RC_NODE_PTR_GET_CHECK(np, npp);
5528 rc_snapshot_attach(rc_node_ptr_t *npp, rc_node_ptr_t *cpp)
5538 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);
6081 * _NOT_SET - npp is reset
6082 * _DELETED - npp's node has been deleted
6083 * _NOT_APPLICABLE - npp's node is not a property
6087 rc_node_setup_value_iter(rc_node_ptr_t *npp, rc_node_iter_t **iterp)
6095 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);
6126 * _NOT_SET - npp is reset
6127 * _DELETED - npp's node has been deleted
6128 * _TYPE_MISMATCH - npp's node is not a property
6137 rc_node_get_property_value(rc_node_ptr_t *npp,
6146 RC_NODE_PTR_GET_CHECK_AND_HOLD(np, npp);
6153 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);
6256 * _TYPE_MISMATCH - *npp cannot have children of type
6260 rc_node_setup_iter(rc_node_ptr_t *npp, rc_node_iter_t **iterp,
6267 RC_NODE_PTR_GET_CHECK(np, npp);
6278 rc = rc_node_setup_value_iter(npp, iterp);
6648 rc_node_setup_tx(rc_node_ptr_t *npp, rc_node_ptr_t *txp)
6657 RC_NODE_PTR_GET_CHECK_AND_HOLD(np, npp);
7306 rc_pg_notify_setup(rc_node_pg_notify_t *pnp, rc_node_ptr_t *npp, int fd)
7310 RC_NODE_PTR_GET_CHECK_AND_LOCK(np, npp);