Home
last modified time | relevance | path

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

/linux-tools/drivers/mremap/module/
H A Dptracexx.c19 static struct class* mClass = NULL; variable
83 mClass = class_create(THIS_MODULE, CLASS_NAME); in ptracexx_module_init()
84 if (IS_ERR(mClass)) { in ptracexx_module_init()
86 return PTR_ERR(mClass); in ptracexx_module_init()
88 mDevice = device_create(mClass, NULL, MKDEV(major_number, 0), NULL, DEVICE_NAME); in ptracexx_module_init()
90 class_destroy(mClass); in ptracexx_module_init()
98 device_destroy(mClass, MKDEV(major_number, 0)); in ptracexx_module_exit()
99 class_unregister(mClass); in ptracexx_module_exit()
100 class_destroy(mClass); in ptracexx_module_exit()