Topic
1 reply Latest Post - ‏2011-09-27T08:06:44Z by flodstrom
TaoufikDachraoui
TaoufikDachraoui
2 Posts
ACCEPTED ANSWER

Pinned topic write a kernel extension for a "file driver" (AIX 5.3)

‏2011-09-25T13:02:37Z |
Hi

I would like to get some help to write a kernel extension called filzip

when the filzip is loaded into the kernel (load filzip with parameter <filename>)
it creates a special file /dev/fzip_<filename> that implements all file operations (open, read,write,...)
and the kernel extension filzip manages a compressed version of the original file.

How can I implement this? since I never wrote a kernel extension I need a sample code (a template) that
I can use to fill the rest of the code.

PS: I am not sure, but for now I do not want to use a file system that save compressed data on physical disk;
I really want a kernel extension that manages a compressed copy of an existing file.

Thank you for your help

Kind regards
Taoufik
Updated on 2011-09-27T08:06:44Z at 2011-09-27T08:06:44Z by flodstrom
  • flodstrom
    flodstrom
    57 Posts
    ACCEPTED ANSWER

    Re: write a kernel extension for a "file driver" (AIX 5.3)

    ‏2011-09-27T08:06:44Z  in response to TaoufikDachraoui
    To start with, have a look at the following pages.

    http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.kernelext/doc/kernextc/kern_enviro.htm

    http://www.ibm.com/developerworks/aix/library/au-kernelext.html

    Also if you google around a bit you might find some other examples.