Lines Matching refs:asinfo
100 static struct cprconfig asinfo; variable
470 if (read(asfd, (void *)&asinfo, sizeof (asinfo)) != sizeof (asinfo)) { in read_cpr_config()
549 estar_v2_prop = asinfo.is_cpr_default; in work_handler()
551 info->pd_flags |= asinfo.is_autowakeup_capable; in work_handler()
553 if (strlen(asinfo.idlecheck_path) > 0) { in work_handler()
554 if (stat(asinfo.idlecheck_path, &stat_buf) != 0) { in work_handler()
556 asinfo.idlecheck_path); in work_handler()
559 asinfo.idlecheck_path); in work_handler()
565 if (strlen(asinfo.as_behavior) == 0 || in work_handler()
566 strcmp(asinfo.as_behavior, "noshutdown") == 0 || in work_handler()
567 strcmp(asinfo.as_behavior, "unconfigured") == 0) { in work_handler()
569 } else if (strcmp(asinfo.as_behavior, "default") == 0) { in work_handler()
571 } else if (strcmp(asinfo.as_behavior, "shutdown") == 0 || in work_handler()
572 strcmp(asinfo.as_behavior, "autowakeup") == 0) { in work_handler()
573 info->pd_autoshutdown = asinfo.is_cpr_capable; in work_handler()
576 asinfo.as_behavior); in work_handler()
581 info->pd_idle_time = asinfo.as_idle; in work_handler()
583 (asinfo.as_sh * 60 + asinfo.as_sm) % DAYS_TO_MINS; in work_handler()
585 (asinfo.as_fh * 60 + asinfo.as_fm) % DAYS_TO_MINS; in work_handler()
587 (strcmp(asinfo.as_behavior, "autowakeup") == 0) ? 1 : 0; in work_handler()
589 autoshutdown_en = (asinfo.as_idle >= 0 && info->pd_autoshutdown) in work_handler()
595 autoshutdown_en, asinfo.as_idle, info->pd_autoresume); in work_handler()
887 info->pd_ttychars_idle = check_tty(hr_now, asinfo.ttychars_thold); in check_idleness()
889 check_load_ave(hr_now, asinfo.loadaverage_thold); in check_idleness()
890 info->pd_diskreads_idle = check_disks(hr_now, asinfo.diskreads_thold); in check_idleness()
891 info->pd_nfsreqs_idle = check_nfs(hr_now, asinfo.nfsreqs_thold); in check_idleness()
913 act_idle = last_tty_activity(hr_now, asinfo.ttychars_thold); in last_system_activity()
917 act_idle = last_disk_activity(hr_now, asinfo.diskreads_thold); in last_system_activity()
919 act_idle = last_nfs_activity(hr_now, asinfo.nfsreqs_thold); in last_system_activity()
947 cp = strrchr(asinfo.idlecheck_path, '/'); in run_idlecheck()
949 cp = asinfo.idlecheck_path; in run_idlecheck()
952 (void) execl(asinfo.idlecheck_path, cp, NULL); in run_idlecheck()
1245 estar_v3_prop = asinfo.is_autopm_default; in do_attach()
1246 if ((strcmp(asinfo.apm_behavior, "enable") == 0) || in do_attach()
1247 (estar_v3_prop && strcmp(asinfo.apm_behavior, "default") == 0)) { in do_attach()