Searched refs:cdev (Results 1 - 25 of 435) sorted by relevance

1234567891011>>

/freebsd-10-stable/sys/ofed/include/linux/
H A Dcdev.h46 struct cdev *cdev; member in struct:linux_cdev
54 struct linux_cdev *cdev; local
56 cdev = container_of(kobj, struct linux_cdev, kobj);
57 if (cdev->cdev)
58 destroy_dev(cdev->cdev);
59 kfree(cdev);
65 struct linux_cdev *cdev; local
81 cdev_init(struct linux_cdev *cdev, const struct file_operations *ops) argument
91 struct linux_cdev *cdev; local
106 cdev_add(struct linux_cdev *cdev, dev_t dev, unsigned count) argument
119 cdev_del(struct linux_cdev *cdev) argument
128 #define cdev macro
[all...]
H A Dmiscdevice.h36 #include <linux/cdev.h>
42 struct cdev *cdev; member in struct:miscdevice
55 misc->cdev = cdev_alloc();
56 if (misc->cdev == NULL)
58 misc->cdev->owner = THIS_MODULE;
59 misc->cdev->ops = misc->fops;
60 kobject_set_name(&misc->cdev->kobj, misc->name);
61 if (cdev_add(misc->cdev, misc->this_device->devt, 1))
70 cdev_del(misc->cdev);
[all...]
/freebsd-10-stable/sys/dev/led/
H A Dled.h17 struct cdev *led_create_state(led_t *, void *, char const *, int);
18 struct cdev *led_create(led_t *, void *, char const *);
19 void led_destroy(struct cdev *);
/freebsd-10-stable/share/examples/kld/cdev/module/
H A DMakefile4 KMOD= cdev
5 SRCS= cdev.c cdevmod.c
H A Dcdev.c3 * cdev.c
77 #include "cdev.h"
101 mydev_open(struct cdev *dev, int flag, int otyp, struct thread *td)
113 mydev_close(struct cdev *dev, int flag, int otyp, struct thread *td)
123 mydev_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int mode,
149 mydev_write(struct cdev *dev, struct uio *uio, int ioflag)
158 printf("Write to \"cdev\" failed.\n");
169 mydev_read(struct cdev *dev, struct uio *uio, int ioflag)
H A Dcdevmod.c76 #include "cdev.h"
85 /* name */ .d_name = "cdev"
93 static struct cdev *sdev;
121 sdev = make_dev(&my_devsw, 0, UID_ROOT, GID_WHEEL, 0600, "cdev");
139 DEV_MODULE(cdev, cdev_load, NULL);
/freebsd-10-stable/etc/devd/
H A Duath.conf13 action "/usr/sbin/uathload -d /dev/$cdev";
24 action "/usr/sbin/uathload -d /dev/$cdev";
35 action "/usr/sbin/uathload -d /dev/$cdev";
46 action "/usr/sbin/uathload -d /dev/$cdev";
57 action "/usr/sbin/uathload -d /dev/$cdev";
68 action "/usr/sbin/uathload -d /dev/$cdev";
79 action "/usr/sbin/uathload -d /dev/$cdev";
90 action "/usr/sbin/uathload -d /dev/$cdev";
101 action "/usr/sbin/uathload -d /dev/$cdev";
112 action "/usr/sbin/uathload -d /dev/$cdev";
[all...]
/freebsd-10-stable/sys/sys/
H A Dconf.h54 struct cdev { struct
61 #define SI_CHILD 0x0010 /* child of another struct cdev **/
75 LIST_ENTRY(cdev) si_list;
76 LIST_ENTRY(cdev) si_clone;
77 LIST_HEAD(, cdev) si_children;
78 LIST_ENTRY(cdev) si_siblings;
79 struct cdev *si_parent;
127 typedef int d_open_t(struct cdev *dev, int oflags, int devtype, struct thread *td);
128 typedef int d_fdopen_t(struct cdev *dev, int oflags, struct thread *td, struct file *fp);
129 typedef int d_close_t(struct cdev *de
[all...]
/freebsd-10-stable/share/examples/kld/
H A DMakefile70 SUBDIR= cdev dyn_sysctl firmware khelp random_adaptor syscall
/freebsd-10-stable/sys/dev/sound/pcm/
H A Ddsp.h39 int dsp_oss_audioinfo(struct cdev *, oss_audioinfo *);
/freebsd-10-stable/sys/dev/sound/
H A Dclone.h115 int snd_clone_getdevtime(struct cdev *, struct timespec *);
116 uint32_t snd_clone_getdevflags(struct cdev *);
117 uint32_t snd_clone_setdevflags(struct cdev *, uint32_t);
120 int snd_clone_acquire(struct cdev *);
121 int snd_clone_release(struct cdev *);
122 int snd_clone_ref(struct cdev *);
123 int snd_clone_unref(struct cdev *);
124 void snd_clone_register(struct snd_clone_entry *, struct cdev *);
125 struct snd_clone_entry *snd_clone_alloc(struct snd_clone *, struct cdev **,
/freebsd-10-stable/sys/dev/dcons/
H A Ddcons_os.h42 struct consdev *cdev; member in struct:dcons_global
/freebsd-10-stable/sys/dev/wtap/plugins/
H A Dwtap_plugin.h40 struct cdev *wp_sdev;
/freebsd-10-stable/share/examples/kld/cdev/test/
H A DMakefile91 ${MODSTAT} -n cdev
/freebsd-10-stable/sys/fs/devfs/
H A Ddevfs_int.h51 struct cdev cdp_c;
75 struct cdev *devfs_alloc(int);
77 void devfs_free(struct cdev *);
78 void devfs_create(struct cdev *);
79 void devfs_destroy(struct cdev *);
/freebsd-10-stable/sys/dev/fb/
H A Dvgareg.h83 int vga_open(struct cdev *dev, vga_softc_t *sc, int flag, int mode,
85 int vga_close(struct cdev *dev, vga_softc_t *sc, int flag, int mode,
87 int vga_read(struct cdev *dev, vga_softc_t *sc, struct uio *uio, int flag);
88 int vga_write(struct cdev *dev, vga_softc_t *sc, struct uio *uio, int flag);
89 int vga_ioctl(struct cdev *dev, vga_softc_t *sc, u_long cmd, caddr_t arg,
91 int vga_mmap(struct cdev *dev, vga_softc_t *sc, vm_ooffset_t offset,
/freebsd-10-stable/sys/kern/
H A Dkern_conf.c52 static MALLOC_DEFINE(M_DEVT, "cdev", "cdev storage");
55 static void destroy_devl(struct cdev *dev);
56 static int destroy_dev_sched_cbl(struct cdev *dev,
59 static int make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw,
76 * Free all the memory collected while the cdev mutex was
78 * be called immediately and is postponed until cdev mutex can be
113 dev_free_devlocked(struct cdev *cdev) argument
118 cdp = cdev2priv(cdev);
915 make_dev_p(int flags, struct cdev **cdev, struct cdevsw *devsw, struct ucred *cr, uid_t uid, gid_t gid, int mode, const char *fmt, ...) argument
933 dev_dependsl(struct cdev *pdev, struct cdev *cdev) argument
943 dev_depends(struct cdev *pdev, struct cdev *cdev) argument
952 make_dev_alias_v(int flags, struct cdev **cdev, struct cdev *pdev, const char *fmt, va_list ap) argument
1009 make_dev_alias_p(int flags, struct cdev **cdev, struct cdev *pdev, const char *fmt, ...) argument
1022 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
[all...]
/freebsd-10-stable/sys/dev/joy/
H A Djoyvar.h38 struct cdev *d;
/freebsd-10-stable/sys/net/
H A Dif_tapvar.h65 struct cdev *tap_dev;
/freebsd-10-stable/sys/dev/null/
H A Dnull.c47 static struct cdev *null_dev;
48 static struct cdev *zero_dev;
74 null_write(struct cdev *dev __unused, struct uio *uio, int flags __unused)
83 null_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused,
107 zero_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data __unused,
129 zero_read(struct cdev *dev __unused, struct uio *uio, int flags __unused)
/freebsd-10-stable/sys/gnu/fs/reiserfs/
H A Dreiserfs_mount.h25 struct cdev *rm_dev;
/freebsd-10-stable/sys/powerpc/ofw/
H A Dofw_syscons.h34 struct cdev *sc_si;
/freebsd-10-stable/sys/dev/drm/
H A Ddrm_fops.c43 int drm_open_helper(struct cdev *kdev, int flags, int fmt, DRM_STRUCTPROC *p,
97 int drm_read(struct cdev *kdev, struct uio *uio, int ioflag)
102 int drm_poll(struct cdev *kdev, int events, DRM_STRUCTPROC *p)
/freebsd-10-stable/sys/dev/lindev/
H A Dfull.c40 static struct cdev *full_dev;
56 full_read(struct cdev *dev __unused, struct uio *uio, int flags __unused)
68 full_write(struct cdev *dev __unused, struct uio *uio __unused,
/freebsd-10-stable/sys/dev/ppbus/
H A Dpcfclock.c56 struct cdev *cdev; member in struct:pcfclock_data
138 sc->cdev = make_dev(&pcfclock_cdevsw, unit,
140 if (sc->cdev == NULL) {
144 sc->cdev->si_drv1 = sc;
150 pcfclock_open(struct cdev *dev, int flag, int fms, struct thread *td)
170 pcfclock_close(struct cdev *dev, int flags, int fmt, struct thread *td)
184 pcfclock_write_cmd(struct cdev *dev, unsigned char command)
204 pcfclock_display_data(struct cdev *dev, char buf[18])
226 pcfclock_read_data(struct cdev *de
[all...]

Completed in 469 milliseconds

1234567891011>>