Lines Matching defs:entry

334  *		this will be set within the only public entry
370 * this will be set within the only public entry
1645 request_spec_list_t *entry =
1649 assert(entry != NULL);
1652 return ((devconfig_t *)request != entry->request);
1746 * the device_spec_list_t cache entry for the input request.
1753 request_spec_list_t *entry = NULL;
1761 entry = (request_spec_list_t *)list_item->obj;
1764 return (entry);
1770 * request_spec_list_entry_t **entry)
1772 * INPUT: entry - pointer to the request_spec_list_entry struct to be
1779 * device_spec_list_t cache entry.
1783 request_spec_list_t *entry)
1785 dlist_t *list_item = dlist_new_item((void *)entry);
1800 * request_spec_list_entry_t **entry)
1813 * the device_spec_list_t cache entry for the input request
1819 * Creates a new cache entry, populates it and adds it to the
1827 request_spec_list_t **entry)
1832 *entry = calloc(1, sizeof (request_spec_list_t));
1833 if (*entry == NULL) {
1837 (*entry)->request = request;
1841 * and save the list as the entry's available list
1847 (*entry)->avail_specs_list = list;
1852 * and save the list as the entry's unavailable list
1859 (*entry)->unavail_specs_list = list;
1863 /* delete the partial entry */
1864 destroy_request_spec_list_entry((void *)*entry);
1865 *entry = NULL;
1934 * FUNCTION: destroy_request_spec_list_entry(void *entry)
1936 * INPUT: entry - opaque pointer to a request_spec_list_t
1951 request_spec_list_t *entry = (request_spec_list_t *)obj;
1953 if (entry != NULL) {
1956 dlist_free_items(entry->avail_specs_list, NULL);
1957 dlist_free_items(entry->unavail_specs_list, NULL);
1958 free(entry);
1998 * If there is currently no entry in the cache for the request,
1999 * an entry is built and added.
2001 * The entry's list of available device_spec_t is returned.
2008 request_spec_list_t *entry = NULL;
2011 if ((entry = find_request_spec_list_entry(request)) == NULL) {
2013 /* create cache entry for this request */
2018 &entry);
2020 if ((error == 0) && (entry != NULL)) {
2021 if ((error = add_request_spec_list_entry(entry)) != 0) {
2022 destroy_request_spec_list_entry(entry);
2023 entry = NULL;
2028 if ((error == 0) && (entry != NULL)) {
2029 *list = entry->avail_specs_list;
2052 * If there is currently no entry in the cache for the request,
2053 * an entry is built and added.
2055 * The entry's list of unavailable device_spec_t is returned.
2062 request_spec_list_t *entry = NULL;
2065 if ((entry = find_request_spec_list_entry(request)) == NULL) {
2067 /* create new entry for this request */
2072 &entry);
2074 if ((error == 0) && (entry != NULL)) {
2075 if ((error = add_request_spec_list_entry(entry)) != 0) {
2076 destroy_request_spec_list_entry(entry);
2077 entry = NULL;
2082 if ((error == 0) && (entry != NULL)) {
2083 *list = entry->unavail_specs_list;
2111 * the corresponding entry in the request_spec_list cache.
2113 * If there is currently no entry in the cache for the defaults,
2114 * an entry is built and added.
2116 * The entry's list of available device_spec_t is returned.
2124 request_spec_list_t *entry = NULL;
2150 if ((entry = find_request_spec_list_entry(defaults)) == NULL) {
2152 /* create new entry for these defaults */
2157 &entry);
2159 if ((error == 0) && (entry != NULL)) {
2160 if ((error = add_request_spec_list_entry(entry)) != 0) {
2161 destroy_request_spec_list_entry(entry);
2162 entry = NULL;
2167 if ((error == 0) && (entry != NULL)) {
2168 *list = entry->avail_specs_list;
2196 * the corresponding entry in the request_spec_list cache.
2198 * If there is currently no entry in the cache for the defaults,
2199 * an entry is built and added.
2201 * The entry's list of unavailable device_spec_t is returned.
2209 request_spec_list_t *entry = NULL;
2236 if ((entry = find_request_spec_list_entry(defaults)) == NULL) {
2238 /* create new entry for these defaults */
2243 &entry);
2245 if ((error == 0) && (entry != NULL)) {
2246 if ((error = add_request_spec_list_entry(entry)) != 0) {
2247 destroy_request_spec_list_entry(entry);
2248 entry = NULL;
2253 if ((error == 0) && (entry != NULL)) {
2254 *list = entry->unavail_specs_list;
3044 spec_cache_t *entry = (spec_cache_t *)
3047 if (entry == NULL) {
3053 free(entry);
3058 entry->name = dup;
3059 entry->device_spec = *id;
3063 dlist_t *item = dlist_new_item((void *)entry);
3065 free(entry);
3255 * list_item - opaque pointer to a spec_cache_t entry
3271 spec_cache_t *entry = (spec_cache_t *)list_item;
3274 assert(entry != NULL);
3276 return (string_case_compare((char *)name, entry->name));
3280 * FUNCTION: destroy_spec_cache_entry(void *entry)
3282 * INPUT: entry - opaque pointer to a spec_cache_t
3287 * spec_cache_t entry.
3296 spec_cache_t *entry = (spec_cache_t *)obj;
3298 if (entry != NULL) {
3299 free(entry->name);
3300 destroy_device_spec(entry->device_spec);
3301 free(entry);