Re: from relative to absolute pathname

2011-02-26 Thread Manish Katiyar
On Fri, Feb 25, 2011 at 11:48 PM, mohit verma mohit89m...@gmail.com wrote: hi all, if i call some system call (like open , rename ,unlink, delete and so on) with relative pathname. in kernel space how can i get the full pathname from that relative pathname being passed to that system call ?

Re: from relative to absolute pathname

2011-02-26 Thread mohit verma
On Sat, Feb 26, 2011 at 1:33 PM, Manish Katiyar mkati...@gmail.com wrote: On Fri, Feb 25, 2011 at 11:48 PM, mohit verma mohit89m...@gmail.com wrote: hi all, if i call some system call (like open , rename ,unlink, delete and so on) with relative pathname. in kernel space how can i get

messages printed lots of times

2011-02-26 Thread mohit verma
hi all, i am putting a printk() on link_path_walk() kernel function ( the pathname resolution function). i access that printk() only at some special condition (like if pathname passed to link_path_walk() matches with some name) . but when it gets hit like when i pass pathname via unlink(2) ,

Re: messages printed lots of times

2011-02-26 Thread Daniel Baluta
i am putting a printk() on link_path_walk() kernel function ( the pathname resolution function). i access that printk() only at some special condition (like if pathname passed to link_path_walk() matches with some name) . but when it gets hit  like when i pass pathname via unlink(2) , lots of

Re: messages printed lots of times

2011-02-26 Thread mohit verma
On Sat, Feb 26, 2011 at 5:14 PM, Daniel Baluta daniel.bal...@gmail.comwrote: i am putting a printk() on link_path_walk() kernel function ( the pathname resolution function). i access that printk() only at some special condition (like if pathname passed to link_path_walk() matches with

Practical character driver

2011-02-26 Thread Sameer Rahmani
hi i write a a character device driver practically, when i load it in kernel, kernel kill the driver because of a crash. i also put the C file in this mail so please review my code please, i want to know problem, mistakes, hints and thank you so much here is a tracback

Re: Practical character driver

2011-02-26 Thread Mulyadi Santosa
On Sun, Feb 27, 2011 at 11:57, Sameer Rahmani lxsam...@gmail.com wrote: static int __init module_initial(void) {   dev_t dev;   int result;   struct memmap *memory;   if (major)     {   dev = MKDEV(major, minor);   result = register_chrdev_region(dev, 1, memchar);     }   else