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