Skip to contentSkip to conversation

Superblock Creation

DISCUSSION Jeba Anandhan A 1 participant 1 message Aug 31, 2004

lore
Share & tools
lore
#0 lore raw

how to write a kernel module program to create a superblock object and manipulate data structures of superblock of existing superblock.

like
#include<linux/kernel.h> #include<linux/module.h>
int init_module(void){
struct super_block *my_super; my->super="/dev/hda1"; // i dont know whether it is //correct
}
...
how to access the superblock object of /dev/hda1 which is located in memory and disk.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com