| /xnu-12377.61.12/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 | 175 if (cdevsw_setkqueueok(PTC_MAJOR, &cdevsw[PTC_MAJOR], CDEVSW_IS_PTC) == -1) { in pty_init() 178 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 = { 676 if (cdevsw[major(dev)].d_open != ptsopen) { in ptsd_kqfilter() 780 if (cdevsw[major(dev)].d_open != ptcopen) { in ptmx_kqfilter()
|
| H A D | tty_dev.c | 568 (*cdevsw[major(tp->t_dev)].d_ioctl) in ptcclose() 1023 } else if (cdevsw[major(dev)].d_open == ptcopen) {
|
| H A D | tty.c | 405 (*cdevsw[major(tp->t_dev)].d_ioctl) in ttyclose() 1225 (*cdevsw[major(constty->t_dev)].d_ioctl) in ttioctl_locked() 1228 (*cdevsw[major(tp->t_dev)].d_ioctl) in ttioctl_locked() 1710 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)]; in ttselect() 1805 (*cdevsw[major(tp->t_dev)].d_stop)(tp, rw); in ttystop()
|
| /xnu-12377.61.12/bsd/sys/ |
| H A D | conf.h | 188 struct cdevsw { struct 296 extern struct cdevsw cdevsw[]; 297 extern int cdevsw_setkqueueok(int, const struct cdevsw*, int); 309 int cdevsw_add(int, const struct cdevsw *); 310 int cdevsw_add_with_bdev(int index, const struct cdevsw * csw, int bdev); 311 int cdevsw_remove(int, const struct cdevsw *);
|
| /xnu-12377.61.12/bsd/dev/arm/ |
| H A D | cons.c | 83 error = (*cdevsw[major(dev)].d_open)(dev, flag, devtype, pp); in cnopen() 101 error = (*cdevsw[major(dev)].d_close)(dev, flag, mode, pp); in cnclose() 119 error = (*cdevsw[major(dev)].d_read)(dev, uio, ioflag); in cnread() 137 error = (*cdevsw[major(dev)].d_write)(dev, uio, ioflag); in cnwrite() 176 error = (*cdevsw[major(dev)].d_ioctl)(dev, cmd, addr, flag, p); in cnioctl() 196 error = (*cdevsw[major(dev)].d_select)(dev, flag, wql, p); in cnselect()
|
| /xnu-12377.61.12/bsd/dev/i386/ |
| H A D | cons.c | 117 error = (*cdevsw[major(dev)].d_open)(dev, flag, devtype, pp); in cnopen() 135 error = (*cdevsw[major(dev)].d_close)(dev, flag, mode, pp); in cnclose() 153 error = (*cdevsw[major(dev)].d_read)(dev, uio, ioflag); in cnread() 171 error = (*cdevsw[major(dev)].d_write)(dev, uio, ioflag); in cnwrite() 208 error = (*cdevsw[major(dev)].d_ioctl)(dev, cmd, addr, flag, p); in cnioctl() 226 error = (*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-12377.61.12/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-12377.61.12/bsd/miscfs/specfs/ |
| H A D | spec_vnops.c | 401 error = (*cdevsw[maj].d_open)(dev, ap->a_mode, S_IFCHR, p); in spec_open() 409 if (error == 0 && cdevsw[maj].d_type == D_DISK && !vp->v_un.vu_specinfo->si_initted) { in spec_open() 559 if (cdevsw[major(vp->v_rdev)].d_type == D_DISK) { in spec_read() 583 error = (*cdevsw[major(vp->v_rdev)].d_read) in spec_read() 700 if (cdevsw[major(dev)].d_type == D_DISK) { in spec_write() 725 error = (*cdevsw[major(vp->v_rdev)].d_write) in spec_write() 893 retval = (*cdevsw[major(dev)].d_ioctl)(dev, ap->a_command, ap->a_data, in spec_ioctl() 931 return (*cdevsw[major(dev)].d_select)(dev, ap->a_which, ap->a_wql, p); in spec_select() 977 } else if (cdevsw[major(dev)].d_type == D_TTY && kn->kn_vnode_kqok) { in spec_kqfilter() 2899 error = cdevsw[major(dev)].d_close(dev, flags, S_IFCHR, p); in spec_close_internal()
|
| /xnu-12377.61.12/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-12377.61.12/bsd/dev/random/ |
| H A D | randomdev.c | 78 static const struct cdevsw random_cdevsw =
|
| /xnu-12377.61.12/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 | 676 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 | 941 static struct cdevsw systrace_cdevsw =
|
| /xnu-12377.61.12/bsd/dev/ |
| H A D | monotonic.c | 53 static const struct cdevsw mt_cdevsw = {
|
| H A D | memdev.c | 143 static const struct cdevsw mdevcdevsw = {
|
| /xnu-12377.61.12/bsd/security/audit/ |
| H A D | audit_pipe.c | 231 static const struct cdevsw audit_pipe_cdevsw = {
|
| H A D | audit_session.c | 338 static const struct cdevsw audit_sdev_cdevsw = {
|
| /xnu-12377.61.12/san/coverage/ |
| H A D | kcov_ksancov.c | 1530 static const struct cdevsw
|