Re: alloc_chrdev_region/unregister_chrdev_region - Issue

2008-12-13 Thread Chetan Nanda
On Tue, Dec 9, 2008 at 11:34 AM, Chetan Nanda chetanna...@gmail.com wrote: On Mon, Dec 8, 2008 at 9:35 PM, Sandeep K Sinha sandeepksi...@gmail.comwrote: On Mon, Dec 8, 2008 at 7:45 PM, Chetan Nanda chetanna...@gmail.com wrote: Hi, I am using 'alloc_chrdev_region' for registering

Re: Device Drivers

2008-12-13 Thread Daniel Baluta
On Sat, Dec 13, 2008 at 3:27 AM, Yogesh Mali yogs.linuxwo...@gmail.com wrote: Hello I have similar question but on different way. I am more interested in file system related projects. 1) Do I need a separate machine to work on kernel programming? 2) How can I work on kernel programming

Re: Device Drivers

2008-12-13 Thread Sandeep K Sinha
Hi Mohit, On Sat, Dec 13, 2008 at 1:25 AM, Mohit Varma mohit.varm...@gmail.com wrote: Hi, I am new to Linux Programming and am particularly interested in Device Driver programming. Now, my queries are : How do I write a Device Driver without having/ owning a hardware. You can write your

Re: alloc_chrdev_region/unregister_chrdev_region - Issue

2008-12-13 Thread Sandeep K Sinha
I meant at BOOT time. On Sat, Dec 13, 2008 at 4:13 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: May be at time itself the kernel confirms all the registered devices and assign NULL to all remaining. Not sure, but will figure that out from the code for sure. On Sat, Dec 13, 2008 at

Re: alloc_chrdev_region/unregister_chrdev_region - Issue

2008-12-13 Thread Sandeep K Sinha
May be at time itself the kernel confirms all the registered devices and assign NULL to all remaining. Not sure, but will figure that out from the code for sure. On Sat, Dec 13, 2008 at 1:32 PM, Chetan Nanda chetanna...@gmail.com wrote: On Tue, Dec 9, 2008 at 11:34 AM, Chetan Nanda

Re: Device Drivers

2008-12-13 Thread Sandeep K Sinha
On Sat, Dec 13, 2008 at 6:57 AM, Yogesh Mali yogs.linuxwo...@gmail.com wrote: Hello I have similar question but on different way. I am more interested in file system related projects. 1) Do I need a separate machine to work on kernel programming? No just download the latest kernel source from

Backup on Shutdown

2008-12-13 Thread rishi agrawal
Hello Everyone, I want to take backup of few folders in my PC everytime I shut down my Fedora 9 How can I do that ?? I do not want to write a shell script called foo.sh and add the commands of taking backup and shutdown to it and execute it every time i want to shutdown my PC I want to add

Backup on Shutdown

2008-12-13 Thread rishi agrawal
Hello Everyone, I want to take backup of few folders in my PC everytime I shut down my Fedora 9 How can I do that ?? I do not want to write a shell script called foo.sh and add the commands of taking backup and shutdown to it and execute it every time i want to shutdown my PC I want to add

Re: Backup on Shutdown

2008-12-13 Thread Sandeep K Sinha
Hey, On Sat, Dec 13, 2008 at 4:36 PM, rishi agrawal postri...@gmail.com wrote: Hello Everyone, I want to take backup of few folders in my PC everytime I shut down my Fedora 9 How can I do that ?? You can simply add these commands that are executed by default when you actually shutdown a

To Check if interrupt is lowered

2008-12-13 Thread Asim
Hi, Is there any kernel routine to check if there are no pending interrupts, give an IRQ number ? Regarrds, Asim -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: Accessing RAM

2008-12-13 Thread Alexander Potashev
Hello! On 11:25 Sat 13 Dec , Peerless Deepak wrote: Hi, I am trying to get a page from RAM write some values in it in kernel space and then read them in user space using mmap. Below is the code i use, to fill the memory with a pattern in kernel space. ptr =get_zeroed_page