Home
last modified time | relevance | path

Searched refs:max_raw_minors (Results 1 – 1 of 1) sorted by relevance

/kernel/linux/linux-5.10/drivers/char/
Draw.c41 static int max_raw_minors = CONFIG_MAX_RAW_DEVS; variable
43 module_param(max_raw_minors, int, 0);
44 MODULE_PARM_DESC(max_raw_minors, "Maximum number of raw devices (1-65536)");
143 if (number <= 0 || number >= max_raw_minors) in bind_set()
191 if (number <= 0 || number >= max_raw_minors) in bind_get()
311 if (max_raw_minors < 1 || max_raw_minors > 65536) { in raw_init()
314 max_raw_minors = CONFIG_MAX_RAW_DEVS; in raw_init()
317 raw_devices = vzalloc(array_size(max_raw_minors, in raw_init()
325 ret = register_chrdev_region(dev, max_raw_minors, "raw"); in raw_init()
330 ret = cdev_add(&raw_cdev, dev, max_raw_minors); in raw_init()
[all …]