Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static struct miscdevice mymisc_dev = {
- .minor = MISC_DYNAMIC_MINOR,
- .name = "mymisc",
- .fops = &mymisc_fops,
- };
- int __init mymisc_device_init(void)
- {
- return misc_register(&mymisc_dev);
- }
- void __exit mymisc_device_remove(void)
- {
- misc_deregister(&mymisc_dev);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement