Searched refs:cdevsw (Results 1 - 25 of 26) sorted by relevance

12

/xnu-2782.1.97/bsd/kern/
H A Dbsd_stubs.c116 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 Dtty_ptmx.c65 * (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 Dtty.c442 (*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 Dtty_dev.c1003 if (cdevsw[major(dev)].d_open == ptcopen) {
/xnu-2782.1.97/bsd/dev/i386/
H A Dcons.c67 * 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 Dconf.c183 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 Dconf.h183 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 Drandomdev.c62 static struct cdevsw random_cdevsw =
/xnu-2782.1.97/bsd/miscfs/specfs/
H A Dspec_vnops.c327 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 Dfbt.c438 static struct cdevsw fbt_cdevsw =
H A Dlockstat.c375 static struct cdevsw lockstat_cdevsw =
H A Dprofile_prvd.c599 static struct cdevsw profile_cdevsw =
H A Dsdt.c402 static struct cdevsw sdt_cdevsw =
H A Dsystrace.c921 static struct cdevsw systrace_cdevsw =
H A Dfasttrap.c2467 static struct cdevsw fasttrap_cdevsw =
/xnu-2782.1.97/bsd/dev/
H A Dmemdev.c126 * cdevsw
141 static struct cdevsw mdevcdevsw = {
/xnu-2782.1.97/bsd/security/audit/
H A Daudit_pipe.c231 static struct cdevsw audit_pipe_cdevsw = {
H A Daudit_session.c336 static struct cdevsw audit_sdev_cdevsw = {
/xnu-2782.1.97/tools/lldbmacros/
H A Dmemory.py1466 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 Dvn.c139 * cdevsw
154 static struct cdevsw vn_cdevsw = {
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_vnops.c1417 *(int *)data = cdevsw[major(vp->v_rdev)].d_type;
H A Dvfs_fsevents.c2311 static struct cdevsw fsevents_cdevsw =
H A Dvfs_subr.c4789 if (maj < (u_int)nchrdev && cdevsw[maj].d_type == D_TTY)
/xnu-2782.1.97/bsd/net/
H A Dbpf.c230 /* Darwin's cdevsw struct differs slightly from BSDs */
232 static struct cdevsw bpf_cdevsw = {
H A Dpf_ioctl.c208 static struct cdevsw pf_cdevsw = {

Completed in 128 milliseconds

12