Home
last modified time | relevance | path

Searched refs:cdevsw (Results 1 – 25 of 34) sorted by relevance

12

/xnu-8792.41.9/bsd/kern/
H A Dbsd_stubs.c89 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 Dtty_pty.c174 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 Dtty_ptmx.c120 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 Dtty.c355 (*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 Dtty_dev.c980 } else if (cdevsw[major(dev)].d_open == ptcopen) {
/xnu-8792.41.9/bsd/dev/i386/
H A Dcons.c90 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 Dconf.c191 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 Dcons.c55 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 Dconf.h187 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 Dconf.c168 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 Dspec_vnops.c353 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 Ddevfs_vfsops.c138 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 DREADME68 without going via the cdevsw table.. they may not even have
/xnu-8792.41.9/bsd/dev/random/
H A Drandomdev.c78 static const struct cdevsw random_cdevsw =
/xnu-8792.41.9/bsd/dev/dtrace/
H A Dlockstat.c255 static const struct cdevsw lockstat_cdevsw =
H A Dlockprof.c381 static const struct cdevsw lockprof_cdevsw =
H A Dprofile_prvd.c672 static const struct cdevsw profile_cdevsw =
H A Dfbt.c579 static const struct cdevsw fbt_cdevsw =
H A Dsdt.c405 static const struct cdevsw sdt_cdevsw =
H A Dsystrace.c940 static struct cdevsw systrace_cdevsw =
/xnu-8792.41.9/bsd/dev/
H A Ddev_perfmon.c311 static const struct cdevsw perfmon_cdevsw = {
H A Dmonotonic.c53 static const struct cdevsw mt_cdevsw = {
H A Dmemdev.c143 static const struct cdevsw mdevcdevsw = {
/xnu-8792.41.9/san/coverage/
H A Dkcov_ksancov.c724 static const struct cdevsw
/xnu-8792.41.9/bsd/security/audit/
H A Daudit_pipe.c231 static const struct cdevsw audit_pipe_cdevsw = {

12