Lines Matching refs:optnum
8728 * If path is NULL, return the kernel (optnum == KERNEL_CMD) or arguments
8729 * (optnum == ARGS_CMD) in the argument buf. If path is a zero-length
8736 menu_cmd_t optnum,
8771 bam_error(NOT_DBOOT, optnum == KERNEL_CMD ? "kernel" : "args");
8823 if (optnum == ARGS_CMD) {
8850 ((optnum == KERNEL_CMD) &&
8864 if (((optnum == KERNEL_CMD) &&
8866 ((optnum == ARGS_CMD) &&
8879 if (optnum == KERNEL_CMD) {
8921 if ((optnum == KERNEL_CMD) && (path[0] != '/')) {
8975 if (optnum == KERNEL_CMD) {
9034 if (optnum == KERNEL_CMD) {
9076 get_kernel(menu_t *mp, menu_cmd_t optnum, char *buf, size_t bufsize)
9079 BAM_DPRINTF((D_FUNC_ENTRY1, fcn, menu_cmds[optnum]));
9080 return (get_set_kernel(mp, optnum, NULL, buf, bufsize));
9084 set_kernel(menu_t *mp, menu_cmd_t optnum, char *path, char *buf, size_t bufsize)
9088 BAM_DPRINTF((D_FUNC_ENTRY2, fcn, menu_cmds[optnum], path));
9089 return (get_set_kernel(mp, optnum, path, buf, bufsize));
9096 int optnum;
9116 optnum = DEFAULT_CMD;
9118 optnum = TIMEOUT_CMD;
9120 optnum = KERNEL_CMD;
9122 optnum = ARGS_CMD;
9132 if ((val == NULL) && (optnum != KERNEL_CMD) && (optnum != ARGS_CMD)) {
9139 if ((optnum == KERNEL_CMD) || (optnum == ARGS_CMD)) {
9140 BAM_DPRINTF((D_SET_OPTION, fcn, menu_cmds[optnum],
9144 rv = set_kernel(mp, optnum, val + 1, buf, sizeof (buf));
9146 rv = get_kernel(mp, optnum, buf, sizeof (buf));
9151 BAM_DPRINTF((D_SET_OPTION, fcn, menu_cmds[optnum], val + 1));
9152 rv = set_global(mp, menu_cmds[optnum], optval);