On 4/11/06, Pankaj Chauhan <pankaj.chauhan@xxxxxxxxx> wrote: > 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. AFAIK i think there is no such hook for device drivers as such like NETFILTER . please CMIIW. > 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. IMHO this can be done may be in more than one ways.I think you can actually write a module which acts as a virtual lower module (d2) and provide you the needed extra functionality. This may require you to traverse the d1 - d2 stack twice for a single operation , which may be a performance hit. But will do i guess. :) > > Thanks in advance. > > > Pankaj Chauhan > > -- play the game -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/