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

1234567891011>>

/freebsd-11-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-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dcdev.h29 * $FreeBSD: stable/11/sys/compat/linuxkpi/common/include/linux/cdev.h 342804 2019-01-06 00:59:55Z kib $
52 struct cdev *cdev; member in struct:linux_cdev
60 cdev_init(struct linux_cdev *cdev, const struct file_operations *ops) argument
63 kobject_init(&cdev->kobj, &linux_cdev_static_ktype);
64 cdev->ops = ops;
65 cdev->refs = 1;
71 struct linux_cdev *cdev; local
73 cdev = kzalloc(sizeof(struct linux_cdev), M_WAITOK);
74 kobject_init(&cdev
86 cdev_add(struct linux_cdev *cdev, dev_t dev, unsigned count) argument
114 cdev_add_ext(struct linux_cdev *cdev, dev_t dev, uid_t uid, gid_t gid, int mode) argument
141 cdev_del(struct linux_cdev *cdev) argument
150 #define cdev macro
[all...]
H A Dmiscdevice.h37 #include <linux/cdev.h>
43 struct cdev *cdev; member in struct:miscdevice
56 misc->cdev = cdev_alloc();
57 if (misc->cdev == NULL)
59 misc->cdev->owner = THIS_MODULE;
60 misc->cdev->ops = misc->fops;
61 kobject_set_name(&misc->cdev->kobj, misc->name);
62 if (cdev_add(misc->cdev, misc->this_device->devt, 1))
71 cdev_del(misc->cdev);
[all...]
/freebsd-11-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-11-stable/share/examples/kld/cdev/module/
H A DMakefile6 KMOD= cdev
7 SRCS= cdev.c cdevmod.c
H A Dcdev.c3 * cdev.c
68 * $FreeBSD: stable/11/share/examples/kld/cdev/module/cdev.c 331085 2018-03-17 05:00:07Z eadler $
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 *de
[all...]
/freebsd-11-stable/sys/dev/sound/pcm/
H A Ddsp.h39 int dsp_oss_audioinfo(struct cdev *, oss_audioinfo *);
/freebsd-11-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-11-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;
109 typedef int d_open_t(struct cdev *dev, int oflags, int devtype, struct thread *td);
110 typedef int d_fdopen_t(struct cdev *dev, int oflags, struct thread *td, struct file *fp);
111 typedef int d_close_t(struct cdev *de
[all...]
/freebsd-11-stable/share/examples/kld/cdev/test/
H A DMakefile70 FILESDIR=${SHAREDIR}/examples/kld/cdev/test
93 ${MODSTAT} -n cdev
/freebsd-11-stable/sys/dev/dcons/
H A Ddcons_os.h41 struct consdev *cdev; member in struct:dcons_global
/freebsd-11-stable/sys/dev/wtap/plugins/
H A Dwtap_plugin.h40 struct cdev *wp_sdev;
/freebsd-11-stable/share/examples/kld/
H A DMakefile72 SUBDIR= cdev dyn_sysctl firmware khelp random_adaptor syscall
/freebsd-11-stable/share/examples/kld/cdev/
H A DMakefile4 FILESDIR=${SHAREDIR}/examples/kld/cdev
/freebsd-11-stable/lib/libcuse/
H A Dcuse_lib.c69 struct cuse_dev *cdev; member in struct:cuse_dev_entered
375 struct cuse_dev *cdev; local
382 cdev = malloc(sizeof(*cdev));
383 if (cdev == NULL)
386 memset(cdev, 0, sizeof(*cdev));
388 cdev->mtod = mtod;
389 cdev->priv0 = priv0;
390 cdev
417 cuse_dev_destroy(struct cuse_dev *cdev) argument
436 cuse_dev_get_priv0(struct cuse_dev *cdev) argument
442 cuse_dev_get_priv1(struct cuse_dev *cdev) argument
448 cuse_dev_set_priv0(struct cuse_dev *cdev, void *priv) argument
454 cuse_dev_set_priv1(struct cuse_dev *cdev, void *priv) argument
466 struct cuse_dev *cdev; local
621 cuse_dev_set_per_file_handle(struct cuse_dev *cdev, void *handle) argument
634 cuse_dev_get_per_file_handle(struct cuse_dev *cdev) argument
[all...]
/freebsd-11-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-11-stable/sys/dev/proto/
H A Dproto_core.c199 r->r_u.cdev = make_dev(&proto_devsw, res, 0, 0, 0600,
202 r->r_u.cdev->si_drv1 = sc;
203 r->r_u.cdev->si_drv2 = r;
207 r->r_u.cdev = make_dev(&proto_devsw, res, 0, 0, 0600,
209 r->r_u.cdev->si_drv1 = sc;
210 r->r_u.cdev->si_drv2 = r;
215 r->r_u.cdev = make_dev(&proto_devsw, res, 0, 0, 0600,
217 r->r_u.cdev->si_drv1 = sc;
218 r->r_u.cdev->si_drv2 = r;
257 destroy_dev(r->r_u.cdev);
278 proto_open(struct cdev *cdev, int oflags, int devtype, struct thread *td) argument
289 proto_close(struct cdev *cdev, int fflag, int devtype, struct thread *td) argument
304 proto_read(struct cdev *cdev, struct uio *uio, int ioflag) argument
359 proto_write(struct cdev *cdev, struct uio *uio, int ioflag) argument
423 proto_ioctl(struct cdev *cdev, u_long cmd, caddr_t data, int fflag, struct thread *td) argument
465 proto_mmap(struct cdev *cdev, vm_ooffset_t offset, vm_paddr_t *paddr, int prot, vm_memattr_t *memattr) argument
[all...]
H A Dproto.h48 struct cdev *cdev; member in union:proto_res::__anon11568
/freebsd-11-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-11-stable/sys/dev/smartpqi/
H A Dsmartpqi_ioctl.c56 static int smartpqi_open(struct cdev *cdev, int flags, int devtype, argument
67 static int smartpqi_close(struct cdev *cdev, int flags, int devtype, argument
78 static void smartpqi_get_driver_info_ioctl(caddr_t udata, struct cdev *cdev) argument
80 struct pqisrc_softstate *softs = cdev->si_drv1;
83 DBG_FUNC("IN udata = %p cdev = %p\n", udata, cdev);
99 static void smartpqi_get_pci_info_ioctl(caddr_t udata, struct cdev *cde argument
127 smartpqi_ioctl(struct cdev *cdev, u_long cmd, caddr_t udata, int flags, struct thread *td) argument
[all...]
/freebsd-11-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);
919 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
937 dev_dependsl(struct cdev *pdev, struct cdev *cdev) argument
947 dev_depends(struct cdev *pdev, struct cdev *cdev) argument
956 make_dev_alias_v(int flags, struct cdev **cdev, struct cdev *pdev, const char *fmt, va_list ap) argument
1013 make_dev_alias_p(int flags, struct cdev **cdev, struct cdev *pdev, const char *fmt, ...) argument
1026 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
[all...]
/freebsd-11-stable/sys/net/
H A Dif_tapvar.h65 struct cdev *tap_dev;
/freebsd-11-stable/sys/dev/extres/clk/
H A Dclk_bus.c65 device_t cdev; local
72 cdev = simplebus_add_device(dev, child, 0, NULL, -1, NULL);
73 if (cdev != NULL)
74 device_probe_and_attach(cdev);
/freebsd-11-stable/sys/dev/joy/
H A Djoyvar.h38 struct cdev *d;
/freebsd-11-stable/sys/modules/evdev/
H A DMakefile6 SRCS= cdev.c evdev.c evdev_mt.c evdev_utils.c

Completed in 258 milliseconds

1234567891011>>