Lines Matching +defs:val +defs:to

4  * The contents of this file are subject to the terms of the
27 * This module implements the PTree interface and the PICL to PTree calls
36 * The mapping of ptree handles to the internal PICL object (picl_obj_t) is
38 * to its ptree handle is kept in the picl hash table (picltbl).
44 * The mutex, ptreehdl_lock, is used to control allocation of ptree handles.
45 * The mutex, piclhdl_lock, is used to control allocation of picl handles.
48 * are used to synchronize PICL refreshes (ptree_refresh) and to wait/signal
71 * ptree_rwlock: a reader lock is obtained to do ptree hash table
88 * to queue events that are posted and to unqueue
89 * events to be dispatched.
91 * used by the ptree event thread to wait for events
94 * used to signal when the eventq becomes empty. The
97 * to add event handlers on registration and to remove
100 * evthandler_lock. It is used to wait until the
135 static hash_t picltbl; /* client handles to picl obj */
136 static hash_t ptreetbl; /* ptree handles to picl obj */
183 * queue_event to events queue
216 * register an event handler by adding it to the list
248 * add handler to the handler list
293 * and wait for it to complete and retry.
364 * This function is called by a plug-in to post an event
453 * Initialize a hash table by setting all entries to NULL
470 * Lock free function to add an entry in the hash table
507 * Lock free function to remove the handle from the hash table
542 * Lock free function to lookup the hash table for a given handle
675 * Allocate and add handle to PTree hash table
819 * Lock the node corresponding to the given handle and return its object
910 * The caller of the piclize() set of functions is assumed to hold
952 * Function to create PICL handles for a subtree and add them to
974 * Function to remove PICL handles
1015 * Function to remove PICL handles for a subtree and its
1151 * to a node of specified class name, releases the lock
1336 * Lock free routine to destroy table entries
1410 /* Is the prop still attached to a node? */
1423 * This function adds a property to the property list of a node and adds
1424 * it to the PICL table if the node has a PICL handle.
1511 * Add prop to beginning of list
1566 /* Nothing to do - already deleted! */
1735 * to see if it is a table handle
1766 * to see if it is a table handle
1786 * This function creates node object and adds its handle to the Ptree
1944 * update parent's child list to repair the tree when
2048 * append child to children list
2093 * This function returns the property information to a plug-in
2121 * This function returns the property information to a plug-in
2308 * This function is used by plugins to get a value of a property
2386 * Ptree function used by plug-ins to update a property's value
2543 * Append a prop expression entry to the list
2559 * Add it to the end of list
2666 prop_match(ptree_propinfo_t pinfo, void *vbuf, char *val)
2682 if (strcmp(val, PICL_CLASS_PICL) == 0)
2685 if (strcmp(val, (char *)vbuf) == 0)
2692 cval = (int8_t)strtol(val, (char **)NULL, 0);
2695 sval = (int16_t)strtol(val, (char **)NULL, 0);
2698 intval = (int32_t)strtol(val, (char **)NULL, 0);
2701 llval = strtoll(val, (char **)NULL, 0);
2709 ucval = (uint8_t)strtoul(val, (char **)NULL, 0);
2712 usval = (uint16_t)strtoul(val, (char **)NULL, 0);
2715 uintval = (uint32_t)strtoul(val, (char **)NULL, 0);
2718 ullval = strtoull(val, (char **)NULL, 0);
2726 fval = (float)strtod(val, (char **)NULL);
2729 dval = strtod(val, (char **)NULL);
2999 * Creates a property, adds it to the node, and returns the property
3000 * handle to the caller if successful and proph is not NULL
3023 * Creates a node, adds it to its parent node, and returns the node
3024 * handle to the caller if successful
3233 * This function is called by plug-ins to register with the daemon
3263 } else { /* add to end */
3594 * Wait for eventq to become empty
3626 * This function is called by the PICL daemon on behalf of clients to
3634 timespec_t to;
3647 to.tv_sec = secs;
3648 to.tv_nsec = 0;
3651 &ptree_refresh_mutex, &to);