Hi i am writing a kernel module that will be shipped as a binary ie no source code will be included. In init_module there are two ways to register:
#ifdef CONFIG_DEVFS_FS
devfs_register_chrdev(MAJOR_NUM,....,&fops)
#else
register_chrdev(MAJOR_NUM,...,&fops);
#endif
Maybe the kernel in which I will compile will have CONFIG_DEVFS_FS turned off but the kernel with which the module is installed may have it turned on or vice versa
My question is: is there any way to check during run time whether the kernel has this option turned on or turned off.
Please if any one can reply to this I will be very grateful!