/xnu-2782.1.97/bsd/kern/ |
H A D | bsd_stubs.c | 116 struct cdevsw nocdev = NO_CDEVICE; 205 struct cdevsw *devsw; 212 devsw = &cdevsw[index]; 216 sizeof(struct cdevsw)) == 0) 220 devsw = &cdevsw[index]; 224 sizeof(struct cdevsw)) != 0)) { 245 cdevsw_add(int index, struct cdevsw * csw) 251 cdevsw[index] = *csw; 259 cdevsw_remove(int index, struct cdevsw * csw) 261 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 = { 222 panic("Failed to set flags on ptmx cdevsw entry."); 233 panic("Failed to set flags on ptmx cdevsw entry."); 618 if (cdevsw[major(dev)].d_open != ptsopen) {
|
H A D | tty.c | 442 (*cdevsw[major(tp->t_dev)].d_ioctl) 1193 (*cdevsw[major(constty->t_dev)].d_ioctl) 1196 (*cdevsw[major(tp->t_dev)].d_ioctl) 1584 * cdevsw. It relies on a proper xxxdevtotty routine. 1592 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)]; 1682 (*cdevsw[major(tp->t_dev)].d_stop)(tp, rw);
|
H A D | tty_dev.c | 1003 if (cdevsw[major(dev)].d_open == ptcopen) {
|
/xnu-2782.1.97/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 | 183 struct cdevsw cdevsw[] = variable in typeref:struct:cdevsw 288 int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]); 290 uint64_t cdevsw_flags[sizeof (cdevsw) / sizeof (cdevsw[0])];
|
/xnu-2782.1.97/bsd/sys/ |
H A D | conf.h | 183 struct cdevsw { struct 220 * Contents of empty cdevsw slot. 297 extern struct cdevsw cdevsw[]; 298 extern int cdevsw_setkqueueok(int, struct cdevsw*, int); 310 int cdevsw_add(int, struct cdevsw *); 311 int cdevsw_add_with_bdev(int index, struct cdevsw * csw, int bdev); 312 int cdevsw_remove(int, struct cdevsw *);
|
/xnu-2782.1.97/bsd/dev/random/ |
H A D | randomdev.c | 62 static struct cdevsw random_cdevsw =
|
/xnu-2782.1.97/bsd/miscfs/specfs/ |
H A D | spec_vnops.c | 327 error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, p); 335 if (error == 0 && cdevsw[maj].d_type == D_DISK && !vp->v_un.vu_specinfo->si_initted) { 465 if (cdevsw[major(vp->v_rdev)].d_type == D_DISK && vp->v_un.vu_specinfo->si_throttleable) { 471 error = (*cdevsw[major(vp->v_rdev)].d_read) 557 if (cdevsw[major(vp->v_rdev)].d_type == D_DISK && vp->v_un.vu_specinfo->si_throttleable) { 566 error = (*cdevsw[major(vp->v_rdev)].d_write) 669 retval = (*cdevsw[major(dev)].d_ioctl)(dev, ap->a_command, ap->a_data, 714 return (*cdevsw[major(dev)].d_select)(dev, ap->a_which, ap->a_wql, p); 2189 error = cdevsw[major(dev)].d_close(dev, flags, S_IFCHR, p);
|
/xnu-2782.1.97/bsd/dev/dtrace/ |
H A D | fbt.c | 438 static struct cdevsw fbt_cdevsw =
|
H A D | lockstat.c | 375 static struct cdevsw lockstat_cdevsw =
|
H A D | profile_prvd.c | 599 static struct cdevsw profile_cdevsw =
|
H A D | sdt.c | 402 static struct cdevsw sdt_cdevsw =
|
H A D | systrace.c | 921 static struct cdevsw systrace_cdevsw =
|
H A D | fasttrap.c | 2467 static struct cdevsw fasttrap_cdevsw =
|
/xnu-2782.1.97/bsd/dev/ |
H A D | memdev.c | 126 * cdevsw 141 static struct cdevsw mdevcdevsw = {
|
/xnu-2782.1.97/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 = {
|
/xnu-2782.1.97/tools/lldbmacros/ |
H A D | memory.py | 1466 elif unsigned(kern.globals.cdevsw[devnode_major].d_open) == unsigned(kern.GetLoadAddressForSymbol('ptmx_open')): 1469 elif unsigned(kern.globals.cdevsw[devnode_major].d_open) == unsigned(kern.GetLoadAddressForSymbol('ptsd_open')):
|
/xnu-2782.1.97/bsd/dev/vn/ |
H A D | vn.c | 139 * cdevsw 154 static struct cdevsw vn_cdevsw = {
|
/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_vnops.c | 1417 *(int *)data = cdevsw[major(vp->v_rdev)].d_type;
|
H A D | vfs_fsevents.c | 2311 static struct cdevsw fsevents_cdevsw =
|
H A D | vfs_subr.c | 4789 if (maj < (u_int)nchrdev && cdevsw[maj].d_type == D_TTY)
|
/xnu-2782.1.97/bsd/net/ |
H A D | bpf.c | 230 /* Darwin's cdevsw struct differs slightly from BSDs */ 232 static struct cdevsw bpf_cdevsw = {
|
H A D | pf_ioctl.c | 208 static struct cdevsw pf_cdevsw = {
|