Re: signals handling in kernel

2015-08-14 Thread KASHISH BHATIA
intricacies, so thought of this exercise. Is it possible ? On Fri, Aug 14, 2015 at 6:10 PM, Pranay Srivastava wrote: > On Fri, Aug 14, 2015 at 5:38 PM, KASHISH BHATIA > wrote: > > > > Is it possible to send signal from one kthread to another kthread using > signal apis defined in

signals handling in kernel

2015-08-14 Thread KASHISH BHATIA
Is it possible to send signal from one kthread to another kthread using signal apis defined in signal.h and signal.c. Also I want to override the default behavior of a signal handler. How can I achieve this ? -- Regards, Kashish Bhatia

APIs to submit bios at block layer

2014-04-14 Thread KASHISH BHATIA
? -- Regards, Kashish Bhatia ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: trace MKFS

2013-01-05 Thread KASHISH BHATIA
Thank you all for answers. Yann Droneaud, Could you shed some light on how kernel uses mkfs output when we run mount command? -- Regards, Kashish Bhatia ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org

print contents of runqueue

2011-10-19 Thread kashish bhatia
Hi, I want to print contents of runqueue of my current processor. I got the pointer to current task_struct. To get runqueue, I called task_rq(). When compiled the module, it gave an error. Actually struct runqueue and task_rq() is not in any header file. It is present in kernel/sched.c Is there

Re: 2.6.39 Kernel Changes for FileSystem, get_sb removed

2011-09-20 Thread kashish bhatia
Hi Abhijit, On Tue, Sep 20, 2011 at 5:14 PM, Abhijit Pawar wrote: > Hi list, > It seems that the support for get_sb function is removed from kernel 2.6.39 > onwards. My code which is working till 2.6.38 series is failing with new > kernels. > > The function "get_sb()" is still present in securi

Re: error : no symbol version for "function"

2011-09-13 Thread kashish bhatia
Hi, There is no licensing mistake because I already included MODULE_LICENSE( "GPL" ); in my module. I also verified the exported symbol. There is an entry for the exported symbol in kallsyms. Is there any other reason of getting this kind of error? -- Regards, Kashish __

error : no symbol version for "function"

2011-09-13 Thread kashish bhatia
ol version for function_name Can anybody explain what is this error and how to resolve this error ? -- Thanks & Regards, Kashish Bhatia ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to verify block numbers of file ?

2011-03-08 Thread kashish bhatia
yaah, I read the man page It can be done in following way [root@KASHISH KASHISH]# debugfs debugfs 1.41.9 (22-Aug-2009) debugfs: open -c /dev/sda5 /dev/sda5: catastrophic mode - not reading inode or group bitmaps debugfs: stat <14> Inode: 14 Type: regularMode: 0644 Flags: 0x0 Generatio

Re: How to verify block numbers of file ?

2011-03-08 Thread kashish bhatia
Hi, Manish I used debugfs . But it is not showing the required output. [root@KASHISH mnt]# debugfs debugfs 1.41.9 (22-Aug-2009) debugfs: ncheck 14 ncheck: Filesystem not open debugfs: stat <14> stat: Filesystem not open I mounted my ext2 fs which I created on /dev/sda5 in /mnt directory an

To display indirect block numbers?

2011-03-01 Thread kashish bhatia
Hi all , If I want to display block numbers of a file. For instance file size is 64KB and block size is 4KB. So the data will accommodate in 16 blocks. Now I accessed an array named "i_block[ ]" present in ext2_inode structure. This array stores the block numbers of a file. The first 12 blocks a

To schedule a process?

2011-02-27 Thread kashish bhatia
Suppose if I wrote a simple c program but I want to execute this program everyday at a specific time ( say at 12 p.m) . Is there any command by which I can schedule the execution of any process(a.out in this case)? -- Regards, Kashish ___ Kernelnewb

how to write modified inode back to disk?

2011-02-20 Thread kashish bhatia
hi all , here is my query : I made a module which access a disk inode using function named ext2_get_inode(). It returns structure pointer of disk block. I copied this structure pointer in a variable of same datatype as of disk inode which is present in my module. Then I changed some fields of th

Re: How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
Hi, Manish How to use debugfs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri wrote: > On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia > wrote: > > Is there any method/command/utility to know what are the block numbers > which > > are allocated to a file in ext2 fs? > > > > The FIBMAP ioct

How to verify block numbers of file ?

2011-02-20 Thread kashish bhatia
Is there any method/command/utility to know what are the block numbers which are allocated to a file in ext2 fs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnew

Re: How to read data of specified disk block in ext2 ?

2011-02-19 Thread kashish bhatia
No, I want to call the function present in kernel which reads the block data and returns the data or pointer to the data. -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinf

How to read data of specified disk block in ext2 ?

2011-02-19 Thread kashish bhatia
Hi All, Does anybody know a function which can be used to read the data of disk block in ext2 fs? -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

How to free data block of ext2 fs?

2011-02-16 Thread kashish bhatia
Hi all , I wanted to free a data block from disk. So I made a loop device for ext2 fs and inserted my module(code) through insmod command. Here are the details : I found a function named ext2_free_data() which takes block numbers to be freed as a parameter. The declaration of the function is as f

Re: Transient Delivery Failure

2011-02-11 Thread kashish bhatia
> > Hi Dave, > Yes, I know which symbol is unknown in my module. It is ext2_free_data() function. I think the function is not exporting properly. The entire detail of my doubt is present in first thread of this mail. -- Regards, Kashish ___ Kernelnew

Re: About EXPORT_SYMBOL

2011-02-10 Thread kashish bhatia
*yes I compiled the kernel again and then tried to insert my module. I think the function is not properly exporting.* -- Regards, Kashish ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/ker

About EXPORT_SYMBOL

2011-02-10 Thread kashish bhatia
Hello All, I want to export a function named ext2_free_data() which is present in inode.c . This function is statically defined in this file. I omit the "static" keyword and exported it using EXPORT_SYMBOL(ext2_free_data). ext2_free_data() function declaration is not present in any header file , s