Lines Matching defs:raw
3 * linux/drivers/char/raw.c
5 * Front-end raw character devices. These can be bound to any block
6 * devices to provide genuine Unix raw character device semantics.
18 #include <linux/raw.h>
44 MODULE_PARM_DESC(max_raw_minors, "Maximum number of raw devices (1-65536)");
47 * Open/close code for raw IO.
49 * We just rewrite the i_mapping for the /dev/raw/rawN file descriptor to
68 "process %s (pid %d) is using the deprecated raw device\n"
139 dev_t raw = MKDEV(RAW_MAJOR, number);
161 * the raw device is opened. Just check that the
179 device_destroy(raw_class, raw);
182 device_destroy(raw_class, raw);
183 device_create(raw_class, NULL, raw, NULL, "raw%d", number);
198 * Deal with ioctls against the raw-device control interface, to bind
199 * and unbind other raw devices.
303 return kasprintf(GFP_KERNEL, "raw/%s", dev_name(dev));
312 pr_warn("raw: invalid max_raw_minors (must be between 1 and 65536), using %d\n",
320 printk(KERN_ERR "Not enough memory for raw device structures\n");
325 ret = register_chrdev_region(dev, max_raw_minors, "raw");
333 raw_class = class_create(THIS_MODULE, "raw");
335 printk(KERN_ERR "Error creating raw class.\n");