Lines Matching refs:action
114 uint_t action; in rctl_save_walk_cb() local
125 action = rctlblk_get_global_action(gblk); in rctl_save_walk_cb()
129 if (action & RCTL_GLOBAL_SYSLOG) in rctl_save_walk_cb()
178 rctladm_setup_action(char *name, char *action, int line) in rctladm_setup_action() argument
180 if (action[0] == '\0') { in rctladm_setup_action()
185 rctladm_enable(name, action); in rctladm_setup_action()
195 char *action; in rctladm_read_config() local
247 action = strtok(actions, ";"); in rctladm_read_config()
248 rctladm_setup_action(name, action, line); in rctladm_read_config()
249 while (action = strtok(NULL, ";")) in rctladm_read_config()
250 rctladm_setup_action(name, action, line); in rctladm_read_config()
262 rctladm_modify_action(const char *rctl_name, uint_t enable, uint_t action, in rctladm_modify_action() argument
274 (action == RCTL_GLOBAL_SYSLOG)) { in rctladm_modify_action()
283 gblk->rcq_global_flagaction |= (action & in rctladm_modify_action()
287 gblk->rcq_global_flagaction &= ~(action & in rctladm_modify_action()
301 rctladm_get_log_level(char *action) in rctladm_get_log_level() argument
308 if (strcmp("syslog", action) == 0) in rctladm_get_log_level()
311 if (strncmp("syslog=", action, strlen("syslog=")) != 0) in rctladm_get_log_level()
312 die(gettext("unknown action \"%s\"\n"), action); in rctladm_get_log_level()
314 log_lvl_str = action + strlen("syslog="); in rctladm_get_log_level()
321 rctladm_enable(const char *rctl_name, char *action) in rctladm_enable() argument
326 if (strcmp("none", action) == 0) { in rctladm_enable()
333 rctladm_get_log_level(action)); in rctladm_enable()
337 rctladm_disable(const char *rctl_name, char *action) in rctladm_disable() argument
342 if (strcmp("all", action) == 0) { in rctladm_disable()
346 } else if (strcmp("syslog", action) == 0) { in rctladm_disable()
352 die(gettext("unknown action \"%s\"\n"), action); in rctladm_disable()
358 uint_t action = rctlblk_get_global_action(gblk); in rctlblk_display() local
364 else if (action & RCTL_GLOBAL_SYSLOG) in rctlblk_display()
448 char *action; in main() local
459 action = optarg; in main()
463 action = optarg; in main()
514 rctladm_enable(rctl, action); in main()
517 rctladm_disable(rctl, action); in main()