Searched refs:cdevsw (Results 1 - 25 of 27) sorted by relevance

12

/darwin-on-arm/xnu/bsd/kern/
H A Dbsd_stubs.c117 struct cdevsw nocdev = NO_CDEVICE;
206 struct cdevsw *devsw;
213 devsw = &cdevsw[index];
217 sizeof(struct cdevsw)) == 0)
221 devsw = &cdevsw[index];
225 sizeof(struct cdevsw)) != 0)) {
246 cdevsw_add(int index, struct cdevsw * csw)
252 cdevsw[index] = *csw;
260 cdevsw_remove(int index, struct cdevsw * csw)
262 struct cdevsw *devs
[all...]
H A Dtty_ptmx.c65 * (Actually two drivers, requiring two entries in 'cdevsw')
119 static struct cdevsw ptmx_cdev = {
127 static struct cdevsw ptsd_cdev = {
310 panic("Failed to set flags on ptmx cdevsw entry.");
321 panic("Failed to set flags on ptmx cdevsw entry.");
1305 if (cdevsw[major(dev)].d_open == ptmx_open && ISSET(tp->t_state, TS_IOCTL_NOT_OK))
1334 if (cdevsw[major(dev)].d_open == ptmx_open) {
1638 if (cdevsw[major(dev)].d_open != ptsd_open) {
H A Dtty.c442 (*cdevsw[major(tp->t_dev)].d_ioctl)
1170 (*cdevsw[major(constty->t_dev)].d_ioctl)
1173 (*cdevsw[major(tp->t_dev)].d_ioctl)
1552 * cdevsw. It relies on a proper xxxdevtotty routine.
1560 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)];
1650 (*cdevsw[major(tp->t_dev)].d_stop)(tp, rw);
H A Dtty_pty.c65 * (Actually two drivers, requiring two entries in 'cdevsw')
805 if (cdevsw[major(dev)].d_open == ptcopen)
/darwin-on-arm/xnu/bsd/dev/arm/
H A Dcons.c67 * cdevsw[] entries for the console device driver
87 return ((*cdevsw[major(dev)].d_open) (dev, flag, devtype, pp));
93 return ((*cdevsw[major(dev)].d_close) (dev, flag, mode, pp));
99 return ((*cdevsw[major(dev)].d_read) (dev, uio, ioflag));
105 return ((*cdevsw[major(dev)].d_write) (dev, uio, ioflag));
130 return ((*cdevsw[major(dev)].d_ioctl) (dev, cmd, addr, flag, p));
136 return ((*cdevsw[major(dev)].d_select) (dev, flag, wql, p));
H A Dconf.c190 struct cdevsw cdevsw[] = { variable in typeref:struct:cdevsw
291 int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
293 uint64_t cdevsw_flags[sizeof(cdevsw) / sizeof(cdevsw[0])];
/darwin-on-arm/xnu/bsd/dev/i386/
H A Dcons.c67 * cdevsw[] entries for the console device driver
89 return ((*cdevsw[major(dev)].d_open)(dev, flag, devtype, pp));
97 return ((*cdevsw[major(dev)].d_close)(dev, flag, mode, pp));
105 return ((*cdevsw[major(dev)].d_read)(dev, uio, ioflag));
113 return ((*cdevsw[major(dev)].d_write)(dev, uio, ioflag));
140 return ((*cdevsw[major(dev)].d_ioctl)(dev, cmd, addr, flag, p));
148 return ((*cdevsw[major(dev)].d_select)(dev, flag, wql, p));
H A Dconf.c185 struct cdevsw cdevsw[] = variable in typeref:struct:cdevsw
290 int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
292 uint64_t cdevsw_flags[sizeof (cdevsw) / sizeof (cdevsw[0])];
/darwin-on-arm/xnu/bsd/sys/
H A Dconf.h189 struct cdevsw { struct
226 * Contents of empty cdevsw slot.
303 extern struct cdevsw cdevsw[];
304 extern int cdevsw_setkqueueok(int, struct cdevsw*, int);
316 int cdevsw_add(int, struct cdevsw *);
317 int cdevsw_add_with_bdev(int index, struct cdevsw * csw, int bdev);
318 int cdevsw_remove(int, struct cdevsw *);
/darwin-on-arm/xnu/bsd/miscfs/specfs/
H A Dspec_vnops.c288 error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, p);
296 if (error == 0 && (D_TYPEMASK & cdevsw[maj].d_type) == D_DISK && !vp->v_un.vu_specinfo->si_initted) {
426 if ((D_TYPEMASK & cdevsw[major(vp->v_rdev)].d_type) == D_DISK && vp->v_un.vu_specinfo->si_throttleable) {
433 error = (*cdevsw[major(vp->v_rdev)].d_read)
519 if ((D_TYPEMASK & cdevsw[major(vp->v_rdev)].d_type) == D_DISK && vp->v_un.vu_specinfo->si_throttleable) {
528 error = (*cdevsw[major(vp->v_rdev)].d_write)
631 retval = (*cdevsw[major(dev)].d_ioctl)(dev, ap->a_command, ap->a_data,
676 return (*cdevsw[major(dev)].d_select)(dev, ap->a_which, ap->a_wql, p);
1818 if ((D_TRACKCLOSE & cdevsw[major(dev)].d_type) != 0 ||
1820 error = cdevsw[majo
[all...]
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Dlockstat.c373 static struct cdevsw lockstat_cdevsw =
H A Dfbt.c441 static struct cdevsw fbt_cdevsw =
H A Dprofile_prvd.c840 static struct cdevsw profile_cdevsw =
H A Dsdt.c482 static struct cdevsw sdt_cdevsw =
H A Dsystrace.c1079 static struct cdevsw systrace_cdevsw =
H A Dfasttrap.c2575 static struct cdevsw fasttrap_cdevsw =
/darwin-on-arm/xnu/bsd/dev/random/
H A Drandomdev.c73 static struct cdevsw random_cdevsw =
/darwin-on-arm/xnu/bsd/dev/
H A Dmemdev.c126 * cdevsw
141 static struct cdevsw mdevcdevsw = {
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_pipe.c231 static struct cdevsw audit_pipe_cdevsw = {
H A Daudit_session.c336 static struct cdevsw audit_sdev_cdevsw = {
/darwin-on-arm/xnu/bsd/dev/vn/
H A Dvn.c139 * cdevsw
154 static struct cdevsw vn_cdevsw = {
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c1338 *(int *)data = D_TYPEMASK & cdevsw[major(vp->v_rdev)].d_type;
H A Dvfs_fsevents.c2238 static struct cdevsw fsevents_cdevsw =
/darwin-on-arm/xnu/bsd/net/
H A Dbpf.c225 /* Darwin's cdevsw struct differs slightly from BSDs */
227 static struct cdevsw bpf_cdevsw = {
H A Dpf_ioctl.c205 static struct cdevsw pf_cdevsw = {

Completed in 196 milliseconds

12