Messages in this thread | | | Date | Mon, 30 Nov 1998 12:54:50 -0800 (PST) | From | "B. James Phillippe" <> | Subject | Detecting module/feature from kernel space |
| |
Hello,
I am looking for advice on how best to check elsewhere in the kernel for the presence of some arbitrary capability. For example, let's say I have an IPSec stack for Linux which prefers to use hardware-based encryption if it's available, and fall back to native software implementation otherwise. :) My first inclination would be to add some global variable to the kernel (such as "hardware_protocol_acceleration_available") and set it to 0 by default, and then add code to the hardware encryption driver that, when compiled in or insmod'ed, sets the variable to 1. Then other kernel code could check this variable before use. But it sounds quite primitive! Are there better suggestions as to how one could accomplish this sort of task?
thanks, -bp -- B. James Phillippe . bryan@terran.org Linux Engineer/Admin . http://www.terran.org/~bryan Member since 1.1.59 . finger:bryan@earth.terran.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |