Lines Matching full: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" in raw_open()
139 dev_t raw = MKDEV(RAW_MAJOR, number); in bind_set() local
161 * the raw device is opened. Just check that the in bind_set()
179 device_destroy(raw_class, raw); in bind_set()
182 device_destroy(raw_class, raw); in bind_set()
183 device_create(raw_class, NULL, raw, NULL, "raw%d", number); in bind_set()
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)); in raw_devnode()
312 pr_warn("raw: invalid max_raw_minors (must be between 1 and 65536), using %d\n", in raw_init()
320 printk(KERN_ERR "Not enough memory for raw device structures\n"); in raw_init()
325 ret = register_chrdev_region(dev, max_raw_minors, "raw"); in raw_init()
333 raw_class = class_create(THIS_MODULE, "raw"); in raw_init()
335 printk(KERN_ERR "Error creating raw class.\n"); in raw_init()