Lines Matching refs:pathname
264 char pathname[32]; in get_msr() local
267 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr()
268 fd = open(pathname, O_RDONLY); in get_msr()
270 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr()
276 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
1698 char pathname[32]; in check_dev_msr() local
1700 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_dev_msr()
1701 if (stat(pathname, &sb)) in check_dev_msr()
1714 char pathname[32]; in check_permissions() local
1729 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_permissions()
1730 if (euidaccess(pathname, R_OK)) { in check_permissions()