Home
last modified time | relevance | path

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

/linux-4.19.296/lib/
Dtest_kmod.c132 struct miscdevice misc_dev; member
164 static struct kmod_test_device *misc_dev_to_test_dev(struct miscdevice *misc_dev) in misc_dev_to_test_dev() argument
166 return container_of(misc_dev, struct kmod_test_device, misc_dev); in misc_dev_to_test_dev()
171 struct miscdevice *misc_dev; in dev_to_test_dev() local
173 misc_dev = dev_to_misc_dev(dev); in dev_to_test_dev()
175 return misc_dev_to_test_dev(misc_dev); in dev_to_test_dev()
1084 struct miscdevice *misc_dev; in alloc_test_dev_kmod() local
1103 misc_dev = &test_dev->misc_dev; in alloc_test_dev_kmod()
1105 misc_dev->minor = MISC_DYNAMIC_MINOR; in alloc_test_dev_kmod()
1106 misc_dev->name = kasprintf(GFP_KERNEL, "test_kmod%d", idx); in alloc_test_dev_kmod()
[all …]