Lines Matching defs:item

46  * This structure describes items.  Each item has a name, type, and
47 * description. During processing, an item read from the user may
50 * A valid item has an argument, if required, and it is of the right
53 * If the item is valid, item_flag_target != NULL, and:
62 typedef int arg_process_t(const struct umem_env_item *item, const char *value);
296 item_uint_process(const umem_env_item_t *item, const char *item_arg)
322 (*item->item_uint_target) = (uint_t)result;
326 log_message("%s: %s: not a number\n", CURRENT, item->item_name);
330 log_message("%s: %s: overflowed\n", CURRENT, item->item_name);
335 item_size_process(const umem_env_item_t *item, const char *item_arg)
391 (*item->item_size_target) = result;
395 log_message("%s: %s: not a number\n", CURRENT, item->item_name);
399 log_message("%s: %s: overflowed\n", CURRENT, item->item_name);
404 umem_log_process(const umem_env_item_t *item, const char *item_arg)
408 ret = item_size_process(item, item_arg);
412 if (*item->item_size_target == 0)
415 *item->item_size_target = 64*1024;
422 umem_size_process(const umem_env_item_t *item, const char *item_arg)
424 const char *name = item->item_name;
455 ret = item_size_process(item, item_arg);
459 result = *item->item_size_target;
466 umem_backend_process(const umem_env_item_t *item, const char *item_arg)
468 const char *name = item->item_name;
490 umem_allocator_process(const umem_env_item_t *item, const char *item_arg)
492 const char *name = item->item_name;
519 process_item(const umem_env_item_t *item, const char *item_arg)
524 switch (item->item_type) {
539 switch (item->item_type) {
544 CURRENT, item->item_name);
561 processor = item->item_special;
566 CURRENT, item->item_name);
572 CURRENT, item->item_name);
576 if (item_arg != NULL || item->item_type == ITEM_SPECIAL) {
577 if (processor(item, item_arg) != ARG_SUCCESS)
581 if (item->item_flag_target) {
582 if (item->item_type == ITEM_CLEARFLAG)
583 (*item->item_flag_target) &= ~item->item_flag_value;
585 (*item->item_flag_target) |= item->item_flag_value;