Lines Matching defs:ref

81 process_ref(const FN_ref_t *ref, const char *cname, char *map, char *key,
85 * Traverse the namespace to find a frontier below ref along which
88 * map: map name for ref
94 * Works by calling frontier_aux() on each name bound under ref.
98 frontier(mapent *mapents, const FN_ref_t *ref, char *map, size_t maplen,
103 * passed unchanged from frontier(). ref is the reference named by
104 * "map/name". If ref is found to be along the frontier, add the
110 frontier_aux(mapent *mapents, const FN_ref_t *ref, char *map, size_t maplen,
119 exported(const FN_ref_t *ref, const char *cname, FN_status_t *status);
128 addr_from_ref(const FN_ref_t *ref, const char *cname, addrtype_t *typep,
218 FN_ref_t *ref;
282 ref = fn_ctx_lookup(init_ctx, compname, status);
290 if (ref == NULL) {
300 process_ref(ref, cname, map, key, opts, root, shallow, status);
301 fn_ref_destroy(ref);
309 process_ref(const FN_ref_t *ref, const char *cname, char *map, char *key,
323 if ((reftype(ref) < NUM_REFTYPES) &&
324 (addr_from_ref(ref, cname, &addrtype, addrdata, LINESZ) == 0)) {
374 if (!self && !exported(ref, cname, status)) {
410 return (frontier(mapents, ref, map, maplen, map + maplen,
425 * name bound under ref. The rest is error checking(!)
433 frontier(mapent *mapents, const FN_ref_t *ref, char *map, size_t maplen,
443 ctx = fn_ctx_handle_from_ref(ref, XFN2(0) status);
498 frontier_aux(mapent *mapents, const FN_ref_t *ref, char *map, size_t maplen,
507 if (reftype(ref) >= NUM_REFTYPES) {
528 at_frontier = (addr_from_ref(ref, cname, &addrtype, NULL, 0) == 0);
535 if (!exported(ref, cname, status)) {
566 frontier(mapents, ref, map, maplen, mntpnt, opts, status);
574 exported(const FN_ref_t *ref, const char *cname, FN_status_t *status)
579 ctx = fn_ctx_handle_from_ref(ref, XFN2(0) status);
601 addr_from_ref(const FN_ref_t *ref, const char *cname, addrtype_t *typep,
607 addr = fn_ref_first(ref, &iter_pos);
610 syslog(LOG_ERR, "FNS ref with no address: %s", cname);
621 addr = fn_ref_next(ref, &iter_pos);