HomeSort by: relevance | last modified time | path
    Searched defs:devfd (Results 1 - 12 of 12) sorted by relevancy

  /src/sys/modules/examples/mapper/
cmd_mapper.c 44 int devfd; local in function:main
47 if ((devfd = open(_PATH_DEV_MAPPER, O_RDONLY)) == -1)
51 devfd, 0));
60 if (close(devfd) == -1)
  /src/sys/modules/examples/ping/
cmd_ping.c 45 int devfd; local in function:main
49 if ((devfd = open(_PATH_DEV_PING, O_RDWR)) == -1)
52 if (ioctl(devfd, CMD_PING) == -1)
57 if (close(devfd) == -1)
  /src/sys/modules/examples/ping_block/
cmd_ping.c 45 int devfd; local in function:main
49 if ((devfd = open(_PATH_DEV_PING, O_RDWR)) == -1)
52 if (ioctl(devfd, CMD_PING) == -1)
57 if (close(devfd) == -1)
  /src/sys/modules/examples/fopsmapper/
cmd_mapper.c 44 int devfd; local in function:main
47 if ((devfd = open(_PATH_DEV_MAPPER, O_RDONLY)) == -1)
50 map = mmap(0, sysconf(_SC_PAGESIZE), PROT_READ, MAP_SHARED, devfd, 0);
59 if (close(devfd) == -1)
  /src/sbin/luactl/
luactl.c 50 int devfd = -1; variable in typeref:typename:int
85 if ((devfd = open(_PATH_DEV_LUA, O_RDWR)) == -1)
126 if (ioctl(devfd, LUAINFO, &info) == -1)
134 if (ioctl(devfd, LUAINFO, &info) == -1)
158 if (ioctl(devfd, LUACREATE, &cr) == -1)
174 if (ioctl(devfd, LUADESTROY, &cr) == -1)
191 if (ioctl(devfd, LUAREQUIRE, &r) == -1)
208 if (ioctl(devfd, LUALOAD, &l) == -1)
  /src/sbin/resize_lfs/
resize_lfs.c 66 int devfd, rootfd; local in function:main
104 devfd = open(rdev, O_RDONLY);
105 if (devfd < 0)
113 if (getdiskinfo(rdev, devfd, NULL, &geo, &dkw) == -1)
129 pread(devfd, buf, sboff, LFS_SBPAD);
137 close(devfd);
  /src/sys/arch/prep/stand/installboot/
installboot.c 183 load_prep_partition(int devfd, struct mbr_partition *ppp)
189 if (devread(devfd, mbr, MBR_BBSECTOR, DEV_BSIZE, "MBR") != 0)
227 int devfd = -1; local in function:main
257 if ((devfd = open(dev, O_RDONLY, 0)) < 0) {
262 if (load_prep_partition(devfd, &ppp)) {
272 close(devfd);
279 if ((devfd = open(dev, O_RDWR, 0)) < 0) {
288 (void)lseek(devfd, (off_t)dbtob(ppp.mbrp_start), SEEK_SET);
289 if (write(devfd, boot00, sizeof(boot00)) != sizeof(boot00)) {
294 (void)lseek(devfd, (off_t)dbtob(ppp.mbrp_start+1), SEEK_SET)
    [all...]
  /src/sys/arch/mvme68k/stand/installboot/
installboot.c 98 int devfd; local in function:main
144 if ((devfd = open(dev, O_RDONLY, 0)) < 0)
148 if (loadblocknums(boot, devfd) != 0)
151 (void)close(devfd);
163 if ((devfd = open(dev, O_RDWR, 0)) < 0)
166 if (lseek(devfd, DEV_BSIZE, SEEK_SET) != DEV_BSIZE)
172 if (write(devfd, protostore, protosize) != protosize)
174 (void)close(devfd);
238 loadblocknums(char *boot, int devfd)
251 * it occupies on the filesystem represented by `devfd'
    [all...]
  /src/usr.sbin/srtconfig/
srtconfig.c 34 static int devfd; variable in typeref:typename:int
100 devfd = open(txt_dev,how,0);
101 if (devfd < 0)
113 if (ioctl(devfd,SRT_GETRT,&r) < 0)
145 { if (ioctl(devfd,SRT_GETNRT,&n) < 0)
156 if (ioctl(devfd,SRT_DELRT,&n) < 0)
172 if (ioctl(devfd,SRT_GETNRT,&v) < 0)
214 if (ioctl(devfd,SRT_SETRT,&r) < 0)
226 if (ioctl(devfd,SRT_GFLAGS,&f) < 0)
258 if (ioctl(devfd,SRT_GFLAGS,&f) < 0
    [all...]
  /src/usr.sbin/gpioctl/
gpioctl.c 42 static int devfd = -1; variable in typeref:typename:int
121 if ((devfd = open(dev, O_RDWR)) == -1)
219 if (ioctl(devfd, GPIOINFO, &info) == -1)
242 if (ioctl(devfd, GPIOREAD, &req) == -1)
273 if (ioctl(devfd, GPIOWRITE, &req) == -1)
276 if (ioctl(devfd, GPIOTOGGLE, &req) == -1)
310 if (ioctl(devfd, GPIOSET, &set) == -1)
347 if (ioctl(devfd, GPIOUNSET, &set) == -1)
358 if (ioctl(devfd, GPIOINFO, &info) == -1)
364 if (ioctl(devfd, GPIOREAD, &req) == -1
    [all...]
  /src/usr.sbin/tprof/
tprof.c 90 int devfd; variable in typeref:typename:int
164 ssz = read(devfd, buf, sizeof(buf));
202 ret = ioctl(devfd, TPROF_IOC_GETCOUNTS, &counts);
459 ret = ioctl(devfd, TPROF_IOC_CONFIGURE_EVENT, &params[i]);
466 ret = ioctl(devfd, TPROF_IOC_START, &mask);
476 close(devfd);
510 ret = ioctl(devfd, TPROF_IOC_STOP, &mask);
523 ret = ioctl(devfd, TPROF_IOC_GETSTAT, &ts);
565 devfd = open(_PATH_TPROF, O_RDWR);
566 if (devfd == -1)
    [all...]
  /src/lib/libukfs/
ukfs.c 214 int devfd = -1; local in function:ukfs_part_probe
257 devfd = open(devpath, O_RDONLY);
258 if (devfd == -1) {
264 if (pread(devfd, buf, sizeof(buf), 0) == -1) {
357 if (devfd != -1)
358 close(devfd);
447 int rv = 0, devfd; local in function:process_diskdevice
452 devfd = open(devpath, rdonly ? O_RDONLY : O_RDWR);
453 if (devfd == -1) {
458 if (fstat(devfd, &sb) == -1)
535 int rv = 0, devfd = -1; local in function:doukfsmount
    [all...]

Completed in 179 milliseconds