Re: need help in understanding basics of block device driver

2009-03-06 Thread nidhi mittal
hi actually i have read all those article ,even LDD ch16 many times but my confusion remains there itself--- even i have written 2-3 mails to kernel newbies regarding this only ...but no reply came :( sending you that mail again if u can help --- that explains my problemin

Re: Challenges Faced by an Amateur Linux Programmer

2009-03-06 Thread nidhi mittal
even i am in the same boat .. i am a web programmer by profession but want to change to linux kernel programming so dont have any valid work ex ---i study in my spare time ---have done all those theoratical reading of kernel from UTLK LKD LDD have developed basic drivers too... but when it

jprobes for 'enqueue_entity' and 'dequeue_entity' causes kernel hang on spinlock

2009-03-06 Thread Sukanto Ghosh
Hi, I have to log when a process gets in/out of the runqueue. For the same I took the jprobes example code from Documentation/kprobes.txt and modified it to probe enqueue_entity() and dequeue_entity() . When I insmod my module the kernel hangs. On running with a remote gdb I could figure out that

Re: Challenges Faced by an Amateur Linux Programmer

2009-03-06 Thread ArunKumar Nagarajan
Count me in as well... I am also in a similar situation, have developed some pseudo drivers and worked a bit on procfs. Looking for people to join me in doing small projects. On Fri, Mar 6, 2009 at 2:36 PM, nidhi mittal nidhimitta...@gmail.comwrote: even i am in the same boat .. i am a web

Re: jprobes for 'enqueue_entity' and 'dequeue_entity' causes kernel hang on spinlock

2009-03-06 Thread Mulyadi Santosa
Hi... On Fri, Mar 6, 2009 at 4:57 PM, Sukanto Ghosh sukanto.cse.i...@gmail.com wrote: Hi, I have to log when a process gets in/out of the runqueue. For the same I took the jprobes example code from Documentation/kprobes.txt and modified it to probe enqueue_entity() and dequeue_entity() .

Re: Wait for two clock ticks

2009-03-06 Thread Asim
Yes - Actually I need to wait for a device to finish something after which I(device) error out. Ideally, I would like a simple function using the standard apis that works on most kernels. I cannot use jiffies as I mentioned earlier. Still working on it. -Asim On Fri, Mar 6, 2009 at 8:28 AM,

Re: need help in understanding basics of block device driver

2009-03-06 Thread Rohit Sharma
Hi Nidhi Please use, plain text for writing mails to newbies, it does not look good. hi all i was practising writing block device driver from linux device driver 3rd edition but was confused as it gives two implementation to transfer data from device 1.without using bios 2.using bios in

Re: Wait for two clock ticks

2009-03-06 Thread Raz
I implemented a timer that can operate without interrupts. but it relies on smp or smt. what do you need it for ? On Fri, Mar 6, 2009 at 5:08 PM, Greg Freemyer greg.freem...@gmail.com wrote: On Fri, Mar 6, 2009 at 9:59 AM, Asim linka...@gmail.com wrote: Yes - Actually I need to wait for a

question on tun/tap and network-stack

2009-03-06 Thread matthias
Dear all, I have a question on the tun/tap module and the network-stack. when we write a packet to: tun_chr_aio_write, it will be transported to: tun_get_user, it will be sent to the network-stack via: netif_rx_ni to netif_rx, where it will be handled by netpoll_rx. if netpoll_rx returns true

Re: Challenges Faced by an Amateur Linux Programmer

2009-03-06 Thread Greg KH
On Fri, Mar 06, 2009 at 03:45:06PM +0530, ArunKumar Nagarajan wrote: Count me in as well... I am also in a similar situation, have developed some pseudo drivers and worked a bit on procfs. Looking for people to join me in doing small projects. If people want small projects and a way to get

Re: Wait for two clock ticks

2009-03-06 Thread Asim
I need it for a device. The device performs some operation in a loop but I cannot wait in that loop forever, so I need to wait for the maximum time I can (2 clock ticks) before giving up on the device. Interrupts may be disabled so I cannot use jiffies. Any simple solution would be appreciated.

Re: Wait for two clock ticks

2009-03-06 Thread Raz
On Fri, Mar 6, 2009 at 8:17 PM, Asim linka...@gmail.com wrote: I need it for a device. The device performs some operation in a loop but I cannot wait in that loop forever, so I need to wait for the maximum time I can (2 clock ticks) before giving up on the device. Interrupts may be disabled so

File System Project

2009-03-06 Thread Shyam Burkule
Hello All, Can you provide me with some project idea in file system that help to understand file system stack. Thanks Shyam

Re: File System Project

2009-03-06 Thread Greg Freemyer
On Fri, Mar 6, 2009 at 2:01 PM, Shyam Burkule shyam.burk...@gmail.com wrote: Hello All, Can you provide me with some project idea in file system that help to understand file system stack. Thanks   Shyam If you don't care if it gets accepted by mainline, then backporting the ext4 online

Re: File System Project

2009-03-06 Thread Shyam Burkule
Hi Greg, Thanks for your reply. Actually I am new to file system, I did work in memory management of Linux kernel. My concern is to understand file system, block architecture etc. I started reading, but wanted to do some implementation. Thanks Shyam On Sat, Mar 7, 2009 at 12:44 AM, Greg

Re: File System Project

2009-03-06 Thread sahlot arvind
I mean RAM based. On Fri, Mar 6, 2009 at 3:50 PM, sahlot arvind asah...@gmail.com wrote: Try writing memory based file system. On Fri, Mar 6, 2009 at 3:35 PM, Shyam Burkule shyam.burk...@gmail.comwrote: Hi Greg, Thanks for your reply. Actually I am new to file system, I did work in

Re: Wait for two clock ticks

2009-03-06 Thread Greg Freemyer
On Fri, Mar 6, 2009 at 1:34 PM, Raz razi...@gmail.com wrote: On Fri, Mar 6, 2009 at 8:17 PM, Asim linka...@gmail.com wrote: I need it for a device. The device performs some operation in a loop but I cannot wait in that loop forever, so I need to wait for the maximum time I can (2 clock ticks)

Re: File System Project

2009-03-06 Thread Greg Freemyer
On Fri, Mar 6, 2009 at 3:35 PM, Shyam Burkule shyam.burk...@gmail.com wrote: Hi Greg, Thanks for your reply. Actually I am new to file system, I did work in memory management of Linux kernel. My concern is to understand file system, block architecture etc. I started reading, but wanted to do

Re: page address from user buffer

2009-03-06 Thread Chauhan
On Fri, 2009-03-06 at 12:19 +0530, Vishal Thanki wrote: Hello, I have implemented a write() call for my character driver. I need to get the page address of the __user buffer passed in write() call from user space. The idea is to get the actual physical address corresponding to user

Re: File System Project

2009-03-06 Thread Manish Katiyar
On Sat, Mar 7, 2009 at 2:25 AM, Greg Freemyer greg.freem...@gmail.com wrote: On Fri, Mar 6, 2009 at 3:35 PM, Shyam Burkule shyam.burk...@gmail.com wrote: Hi Greg, Thanks for your reply. Actually I am new to file system, I did work in memory management of Linux kernel. My concern is to

Re: Wait for two clock ticks

2009-03-06 Thread Greg KH
On Fri, Mar 06, 2009 at 12:17:37PM -0600, Asim wrote: I need it for a device. The device performs some operation in a loop but I cannot wait in that loop forever, so I need to wait for the maximum time I can (2 clock ticks) before giving up on the device. Interrupts may be disabled so I cannot

Re: on crypto

2009-03-06 Thread Pei Lin
u mean u wanna use the functions in your apps from user space? if yes,u can write IOTRL command in the module for call the functions, and in your app use iotrl system call send the command to your module for doing sth you want,it is useful for communication with modules. 2009/3/5 chaitanya

Re: on crypto

2009-03-06 Thread Pei Lin
oh sorry for my bad spelling. IOCTL not IOTRL .^-^ 2009/3/7 Pei Lin telent...@gmail.com: u mean u wanna use the functions in your apps from user space? if yes,u can write IOTRL command in  the module for call the functions, and in your app use iotrl system call send the command to your module