Re: module stacking.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi


> 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.

1) To use functions/variables from one module to another use EXPORT_SYMBOL
2) To make sure other modules are loaded modules.dep has to be created/modified. man depmod
might help. I've not used it.

Anand


>
> 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
>
>
>




--
Vision without an action is merely a dream, action without vision is wastage of time, vision and action together can change the world..


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux