Messages in this thread | | | Date | Tue, 31 Aug 2004 12:29:51 -0400 | From | David Ford <> | Subject | Re: Kernel OOPS[filesystem programming] |
| |
What is *my_inode set to?
Jeba Anandhan A wrote:
>i have written kernel program to access the data >structure of particular inode. > >#include<linux/kernel.h> >#include<linux/module.h> >#include<linux/fs.h> > >static struct inode *my_inode; >static unsigned long inode_no; > > >int init_module(void){ > printk("inode module inserted\n"); > inode_no=1304012; > printk("inode no=%d",inode_no); > my_inode->i_ino=inode_no; // it creates segmentation > //fault why so.. >return 0; >} > >void cleanup_module(void){ >} > begin:vcard fn:David Ford n:Ford;David email;internet:david@blue-labs.org title:Industrial Geek tel;home:Ask please tel;cell:(203) 650-3611 x-mozilla-html:TRUE version:2.1 end:vcard
| |