hi all,
Is there any framework available in linux kernel
(2.6.x) to stack the modules (or device drivers to be
specific). what i want is NETFILTER (which is
available for network stack) kind of frame work for
device drivers.
Lets say i have a driver d1 for device D, d1
implements very basic funtionality like configuration,
read and write to device D. now i want some more
complex funtions such as compression or encryption of
data that is written to D, so i want that i write a
driver d2 which sits on top of d1 and implement new
funtionality. so we have a picture like
d2 (compression / encryption)
|
d1 (basic functions)
|
D (device)
I understand that it is possible to implement this
stacking by code changes in d1 and d2, but tomorrow if
i want to insert another funtionality implemented as
d3 which should go between d2 and d1, i do'nt want to
do any code changes to d1 and d2, i want that there
should be a framework which allows me to implement
this stacking without any code change in my driver.
Thanks in advance.
Pankaj Chauhan