lkml.org 
[lkml]   [1998]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectDetecting 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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.020 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site