| /xnu-8792.41.9/bsd/kern/ |
| H A D | bsd_stubs.c | 89 const struct cdevsw nocdev = NO_CDEVICE; 187 struct cdevsw * devsw; in cdevsw_isfree() 195 devsw = &cdevsw[index]; in cdevsw_isfree() 197 if (memcmp((const char *)devsw, (const char *)&nocdev, sizeof(struct cdevsw)) == 0) { in cdevsw_isfree() 207 devsw = &cdevsw[index]; in cdevsw_isfree() 208 if ((memcmp((const char *)devsw, (const char *)&nocdev, sizeof(struct cdevsw)) != 0)) { in cdevsw_isfree() 229 cdevsw_add(int index, const struct cdevsw * csw) in cdevsw_add() 236 cdevsw[index] = *csw; in cdevsw_add() 246 cdevsw_remove(int index, const struct cdevsw * csw) in cdevsw_remove() 248 struct cdevsw * devsw; in cdevsw_remove() [all …]
|
| H A D | tty_pty.c | 174 if (cdevsw_setkqueueok(PTC_MAJOR, &cdevsw[PTC_MAJOR], CDEVSW_IS_PTC) == -1) { in pty_init() 177 if (cdevsw_setkqueueok(PTS_MAJOR, &cdevsw[PTS_MAJOR], CDEVSW_IS_PTS) == -1) { in pty_init()
|
| H A D | tty_ptmx.c | 120 static const struct cdevsw ptmx_cdev = { 138 static const struct cdevsw ptsd_cdev = { 665 if (cdevsw[major(dev)].d_open != ptsopen) { in ptsd_kqfilter() 769 if (cdevsw[major(dev)].d_open != ptcopen) { in ptmx_kqfilter()
|
| H A D | tty.c | 355 (*cdevsw[major(tp->t_dev)].d_ioctl) in ttyclose() 1121 (*cdevsw[major(constty->t_dev)].d_ioctl) in ttioctl_locked() 1124 (*cdevsw[major(tp->t_dev)].d_ioctl) in ttioctl_locked() 1599 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)]; in ttselect() 1694 (*cdevsw[major(tp->t_dev)].d_stop)(tp, rw); in ttystop()
|
| H A D | tty_dev.c | 980 } else if (cdevsw[major(dev)].d_open == ptcopen) {
|
| /xnu-8792.41.9/bsd/dev/i386/ |
| H A D | cons.c | 90 return (*cdevsw[major(dev)].d_open)(dev, flag, devtype, pp); in cnopen() 98 return (*cdevsw[major(dev)].d_close)(dev, flag, mode, pp); in cnclose() 106 return (*cdevsw[major(dev)].d_read)(dev, uio, ioflag); in cnread() 114 return (*cdevsw[major(dev)].d_write)(dev, uio, ioflag); in cnwrite() 141 return (*cdevsw[major(dev)].d_ioctl)(dev, cmd, addr, flag, p); in cnioctl() 149 return (*cdevsw[major(dev)].d_select)(dev, flag, wql, p); in cnselect()
|
| H A D | conf.c | 191 struct cdevsw cdevsw[] = { variable 245 const int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); 247 uint64_t cdevsw_flags[sizeof(cdevsw) / sizeof(cdevsw[0])];
|
| /xnu-8792.41.9/bsd/dev/arm/ |
| H A D | cons.c | 55 return (*cdevsw[major(dev)].d_open)(dev, flag, devtype, pp); in cnopen() 63 return (*cdevsw[major(dev)].d_close)(dev, flag, mode, pp); in cnclose() 71 return (*cdevsw[major(dev)].d_read)(dev, uio, ioflag); in cnread() 79 return (*cdevsw[major(dev)].d_write)(dev, uio, ioflag); in cnwrite() 104 return (*cdevsw[major(dev)].d_ioctl)(dev, cmd, addr, flag, p); in cnioctl() 112 return (*cdevsw[major(dev)].d_select)(dev, flag, wql, p); in cnselect()
|
| /xnu-8792.41.9/bsd/sys/ |
| H A D | conf.h | 187 struct cdevsw { struct 295 extern struct cdevsw cdevsw[]; 296 extern int cdevsw_setkqueueok(int, const struct cdevsw*, int); 308 int cdevsw_add(int, const struct cdevsw *); 309 int cdevsw_add_with_bdev(int index, const struct cdevsw * csw, int bdev); 310 int cdevsw_remove(int, const struct cdevsw *);
|
| /xnu-8792.41.9/bsd/dev/arm64/ |
| H A D | conf.c | 168 struct cdevsw cdevsw[] = { variable 222 const int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); 224 uint64_t cdevsw_flags[sizeof(cdevsw) / sizeof(cdevsw[0])];
|
| /xnu-8792.41.9/bsd/miscfs/specfs/ |
| H A D | spec_vnops.c | 353 error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, p); in spec_open() 361 if (error == 0 && cdevsw[maj].d_type == D_DISK && !vp->v_un.vu_specinfo->si_initted) { in spec_open() 505 if (cdevsw[major(vp->v_rdev)].d_type == D_DISK) { in spec_read() 529 error = (*cdevsw[major(vp->v_rdev)].d_read) in spec_read() 646 if (cdevsw[major(dev)].d_type == D_DISK) { in spec_write() 671 error = (*cdevsw[major(vp->v_rdev)].d_write) in spec_write() 793 retval = (*cdevsw[major(dev)].d_ioctl)(dev, ap->a_command, ap->a_data, in spec_ioctl() 826 return (*cdevsw[major(dev)].d_select)(dev, ap->a_which, ap->a_wql, p); in spec_select() 872 } else if (cdevsw[major(dev)].d_type == D_TTY && kn->kn_vnode_kqok) { in spec_kqfilter() 2761 error = cdevsw[major(dev)].d_close(dev, flags, S_IFCHR, p); in spec_close()
|
| /xnu-8792.41.9/bsd/miscfs/devfs/ |
| H A D | devfs_vfsops.c | 138 if (cdevsw_setkqueueok(7, (&(cdevsw[7])), 0) == -1) { in devfs_init() 144 if (cdevsw_setkqueueok(8, (&(cdevsw[8])), 0) == -1) { in devfs_init()
|
| H A D | README | 68 without going via the cdevsw table.. they may not even have
|
| /xnu-8792.41.9/bsd/dev/random/ |
| H A D | randomdev.c | 78 static const struct cdevsw random_cdevsw =
|
| /xnu-8792.41.9/bsd/dev/dtrace/ |
| H A D | lockstat.c | 255 static const struct cdevsw lockstat_cdevsw =
|
| H A D | lockprof.c | 381 static const struct cdevsw lockprof_cdevsw =
|
| H A D | profile_prvd.c | 672 static const struct cdevsw profile_cdevsw =
|
| H A D | fbt.c | 579 static const struct cdevsw fbt_cdevsw =
|
| H A D | sdt.c | 405 static const struct cdevsw sdt_cdevsw =
|
| H A D | systrace.c | 940 static struct cdevsw systrace_cdevsw =
|
| /xnu-8792.41.9/bsd/dev/ |
| H A D | dev_perfmon.c | 311 static const struct cdevsw perfmon_cdevsw = {
|
| H A D | monotonic.c | 53 static const struct cdevsw mt_cdevsw = {
|
| H A D | memdev.c | 143 static const struct cdevsw mdevcdevsw = {
|
| /xnu-8792.41.9/san/coverage/ |
| H A D | kcov_ksancov.c | 724 static const struct cdevsw
|
| /xnu-8792.41.9/bsd/security/audit/ |
| H A D | audit_pipe.c | 231 static const struct cdevsw audit_pipe_cdevsw = {
|