I'm developing a driver for my employer and am using some of the
functions in linux/drivers/base/class.c to work with sysfs & udev:
class_create(), class_device_create(), etc.
I'm using the Centos 5.2 release with Linux kernel 2.6.24.7-65. I had
to change the license to GPL
MODULE_LICENSE("GPL");
to get the driver to compile because of the
EXPORT_SYMBOL_GPL(class_create);
in class.c.
I need to keep the driver proprietary, so how do I work with udev and
sysfs without using the functions in class.c? Is there another non-gpl
interface to those systems?
It looks like I'm going to run into this same issue with the lower-
level functions that class_create() calls, like sysfs_create_file(),
kobject_uevent(), etc, so I can't just do an end-run around those
functions.
Replies