Home
last modified time | relevance | path

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

12

/xnu-12377.61.12/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.c175 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 Dtty_ptmx.c120 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 Dtty_dev.c568 (*cdevsw[major(tp->t_dev)].d_ioctl) in ptcclose()
1023 } else if (cdevsw[major(dev)].d_open == ptcopen) {
H A Dtty.c405 (*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 Dconf.h188 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 Dcons.c83 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 Dcons.c117 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 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-12377.61.12/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-12377.61.12/bsd/miscfs/specfs/
H A Dspec_vnops.c401 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 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-12377.61.12/bsd/dev/random/
H A Drandomdev.c78 static const struct cdevsw random_cdevsw =
/xnu-12377.61.12/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.c676 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.c941 static struct cdevsw systrace_cdevsw =
/xnu-12377.61.12/bsd/dev/
H A Dmonotonic.c53 static const struct cdevsw mt_cdevsw = {
H A Dmemdev.c143 static const struct cdevsw mdevcdevsw = {
/xnu-12377.61.12/bsd/security/audit/
H A Daudit_pipe.c231 static const struct cdevsw audit_pipe_cdevsw = {
H A Daudit_session.c338 static const struct cdevsw audit_sdev_cdevsw = {
/xnu-12377.61.12/san/coverage/
H A Dkcov_ksancov.c1530 static const struct cdevsw

12