/darwin-on-arm/xnu/bsd/kern/ |
H A D | bsd_stubs.c | 117 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 D | tty_ptmx.c | 65 * (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 D | tty.c | 442 (*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 D | tty_pty.c | 65 * (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 D | cons.c | 67 * 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 D | conf.c | 190 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 D | cons.c | 67 * 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 D | conf.c | 185 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 D | conf.h | 189 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 D | spec_vnops.c | 288 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 D | lockstat.c | 373 static struct cdevsw lockstat_cdevsw =
|
H A D | fbt.c | 441 static struct cdevsw fbt_cdevsw =
|
H A D | profile_prvd.c | 840 static struct cdevsw profile_cdevsw =
|
H A D | sdt.c | 482 static struct cdevsw sdt_cdevsw =
|
H A D | systrace.c | 1079 static struct cdevsw systrace_cdevsw =
|
H A D | fasttrap.c | 2575 static struct cdevsw fasttrap_cdevsw =
|
/darwin-on-arm/xnu/bsd/dev/random/ |
H A D | randomdev.c | 73 static struct cdevsw random_cdevsw =
|
/darwin-on-arm/xnu/bsd/dev/ |
H A D | memdev.c | 126 * cdevsw 141 static struct cdevsw mdevcdevsw = {
|
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_pipe.c | 231 static struct cdevsw audit_pipe_cdevsw = {
|
H A D | audit_session.c | 336 static struct cdevsw audit_sdev_cdevsw = {
|
/darwin-on-arm/xnu/bsd/dev/vn/ |
H A D | vn.c | 139 * cdevsw 154 static struct cdevsw vn_cdevsw = {
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_vnops.c | 1338 *(int *)data = D_TYPEMASK & cdevsw[major(vp->v_rdev)].d_type;
|
H A D | vfs_fsevents.c | 2238 static struct cdevsw fsevents_cdevsw =
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | bpf.c | 225 /* Darwin's cdevsw struct differs slightly from BSDs */ 227 static struct cdevsw bpf_cdevsw = {
|
H A D | pf_ioctl.c | 205 static struct cdevsw pf_cdevsw = {
|