Home
last modified time | relevance | path

Searched refs:tbase_fd (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/base/user_base/
Duser_tbase.c45 static int tbase_fd = -1; /* file descriptor */ variable
113 tbase_fd = open("/dev/tbase", O_RDWR); in tbaseopen()
115 if (tbase_fd < 0) { in tbaseopen()
117 "/dev/tbase", tbase_fd, errno); in tbaseopen()
129 if (tbase_fd != -1) { in tbaseclose()
130 close(tbase_fd); in tbaseclose()
131 tbase_fd = -1; in tbaseclose()
149 if (ki_generic(tbase_fd, BUS_RESCAN)) in main()
155 if (ki_generic(tbase_fd, GET_DRV)) in main()
161 if (ki_generic(tbase_fd, PUT_DRV)) in main()
[all …]