Lines Matching refs:g_ctlfd
41 static int g_ctlfd;
198 if (ioctl(g_ctlfd, ST_IOC_GETFID, &cmd) != 0) {
219 if (ioctl(g_ctlfd, ST_IOC_KTHREAD, &cmd) != 0) {
352 if (ioctl(g_ctlfd, ST_IOC_SUSPEND, &cmd) != 0)
363 if (ioctl(g_ctlfd, ST_IOC_RESUME, &cmd) != 0)
384 if (ioctl(g_ctlfd, ST_IOC_ROTATE, &cmd) != 0) {
409 if (ioctl(g_ctlfd, ST_IOC_SPIN, &cmd) != 0) {
427 if (ioctl(g_ctlfd, ST_IOC_CRED_SET, &cmd) != 0)
438 if (ioctl(g_ctlfd, ST_IOC_CRED_CLEAR, &cmd) != 0)
496 if ((g_ctlfd = open(SHADOWTEST_DEV, O_RDWR)) < 0)
505 (void) close(g_ctlfd);