Lines Matching refs:oflags
104 uint_t oflags;
115 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR;
116 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL));
127 uint_t oflags;
138 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR;
139 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL));
151 uint_t oflags;
164 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0;
165 oflags |= ((flags & DC_RDONLY) != 0) ? O_RDONLY : O_RDWR;
167 return (dc_mkhndl(DEVCTL_AP, devfs_path, oflags, NULL));
179 uint_t oflags;
190 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR;
191 return (dc_mkhndl(DEVCTL_PM_BUS, devfs_path, oflags, NULL));
203 uint_t oflags;
214 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR;
215 return (dc_mkhndl(DEVCTL_PM_DEV, devfs_path, oflags, NULL));
224 dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc)
458 dcp->fd = open(iocpath, oflags);