Lines Matching refs:oflags
108 uint_t oflags;
119 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR;
120 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL));
131 uint_t oflags;
142 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR;
143 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL));
155 uint_t oflags;
168 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0;
169 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR;
171 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NULL));
183 uint_t oflags;
194 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR;
195 return (dc_mkhndl(DEVCTL_PM_BUS, devfs_path, oflags, NULL));
207 uint_t oflags;
218 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR;
219 return (dc_mkhndl(DEVCTL_PM_DEV, devfs_path, oflags, NULL));
228 dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc)
462 dcp->fd = open(iocpath, oflags);