Re: How to find my usb storage device mount point

2008-09-11 Thread Thomas Petazzoni
Le Fri, 12 Sep 2008 11:34:39 +0530, ravikumar <[EMAIL PROTECTED]> a écrit : > I think i may not properly communicated my requirement or people > wont understand my requirement. > > My requirement is simply detect usb storage device plugged into PC > and notify any files are transfered(not data t

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
I think i may not properly communicated my requirement or people wont understand my requirement. My requirement is simply detect usb storage device plugged into PC and notify any files are transfered(not data transfer, i need file names) . I knew syslod and dmesg command will give newly plug

Re: How to find my usb storage device mount point

2008-09-11 Thread shreeram
ravikumar wrote: For my project df command will help only if i know the device to which my usb storage device is attached. shreeram wrote: In that case you can grep the "dmesg" to find the type of device. ravikumar wrote: Please help me for the following project V.Ravikumar wrote: I wa

Re: How to find my usb storage device mount point

2008-09-11 Thread shreeram
ravikumar wrote: Please help me for the following project V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device through /proc/bus/usb/devices,but detectioon is not enough,i need to

Re: How to find my usb storage device mount point

2008-09-11 Thread shreeram
ravikumar wrote: Please tell me how to find out to which device(say /dev/sda1 ) to my usb storage device is connected. Regards, Ravikumar. "dmesg" should give you the details of the device V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb stora

Modifying Keyboard Driver

2008-09-11 Thread mayank rana
Hi All,   I need to do some experiment with PS/2 Keyboard driver i.e. atkbd.c .   1. Can I make it as module driver instead of in-built kernel driver ? If yes, how ? I tried with menuconfig, it is not allowing me to do that. 2. What are the possible problem I may face while doing this ?     Tha

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
Can any body know how dmesg command and syslogd will fetch the information about usb storage device plugged into my system. Regards, Ravikumar. shreeram wrote: ravikumar wrote: Please tell me how to find out to which device(say /dev/sda1 ) to my usb storage device is connected. Regards, R

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
For my project df command will help only if i know the device to which my usb storage device is attached. shreeram wrote: ravikumar wrote: Please help me for the following project V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
Please tell me how to find out to which device(say /dev/sda1 ) to my usb storage device is connected. Regards, Ravikumar. V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device thr

Re: How to find my usb storage device mount point

2008-09-11 Thread ravikumar
Please help me for the following project V.Ravikumar wrote: I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device through /proc/bus/usb/devices,but detectioon is not enough,i need to find what are file

Preventing a cached changed page from being written

2008-09-11 Thread Paulo da Silva
Suppose the following situation: 1. Lock a cached page 2. Change it 3. Set it dirty 4. Unlock the page From this point, it is assumed that the kernel may write the page. How can I prevent the page from being written, even if some "sync" function is called like, for example, filemap_write_and_wai

Re: Why EXPORT_PER_CPU_SYMBOL?

2008-09-11 Thread Peter Teoh
On Thu, Sep 11, 2008 at 9:17 PM, Thomas Petazzoni <[EMAIL PROTECTED]> wrote: > Le Thu, 11 Sep 2008 14:18:34 +0800, > "Peter Teoh" <[EMAIL PROTECTED]> a écrit : > >> In arch/x86/kernel/process_32.c: >> >> EXPORT_PER_CPU_SYMBOL(current_task); >> EXPORT_PER_CPU_SYMBOL(cpu_number); >> EXPORT_SYMBOL(ker

Re: address space of a block device

2008-09-11 Thread Paulo da Silva
Peter Teoh escreveu: On Thu, Sep 11, 2008 at 8:48 PM, Paulo da Silva <[EMAIL PROTECTED]> wrote: ... Second concept is that this bd_inode is to create the object in the buffer cache to buffer the data for the physical device - this is where address space mapping comes in. To answer your que

Re: How to find my usb storage device mount point

2008-09-11 Thread V . Ravikumar
I want implement following project: Detecting files transfered from/to usb storage from/to my system. I can detect the plugged in usd storage device through /proc/bus/usb/devices,but detectioon is not enough,i need to find what are files transfered from/to usb storage device.(using usbmon i cant f

Re: address space of a block device

2008-09-11 Thread Peter Teoh
On Thu, Sep 11, 2008 at 8:48 PM, Paulo da Silva <[EMAIL PROTECTED]> wrote: > Peter Teoh escreveu: >> >> I don't really understand the meaning of "will die". >> > > So don't I. > ... > >> so when bd_inode "will die", does it mean that the inode will become >> non-available? > > Well ... I thought th

Re: kernel build question

2008-09-11 Thread Thomas Petazzoni
Le Thu, 11 Sep 2008 11:01:39 +0530, "umesh b" <[EMAIL PROTECTED]> a écrit : > Thats correct. But how do i know what all i need to select? suppose > the motherboard supports PCI express, or maybe some I2C chip. The > devices we can see using cat /proc/devices but what about things that > the mother

Re: Why EXPORT_PER_CPU_SYMBOL?

2008-09-11 Thread Thomas Petazzoni
Le Thu, 11 Sep 2008 14:18:34 +0800, "Peter Teoh" <[EMAIL PROTECTED]> a écrit : > In arch/x86/kernel/process_32.c: > > EXPORT_PER_CPU_SYMBOL(current_task); > EXPORT_PER_CPU_SYMBOL(cpu_number); > EXPORT_SYMBOL(kernel_thread); > EXPORT_SYMBOL_GPL(start_thread); > > What is the rational behind expor

Re: address space of a block device

2008-09-11 Thread Paulo da Silva
Peter Teoh escreveu: I don't really understand the meaning of "will die". So don't I. ... so when bd_inode "will die", does it mean that the inode will become non-available? Well ... I thought the element "bd_inode" will be removed from the device structure. But it is heavily used! "mappin

Teste; this is a test. Please ignore

2008-09-11 Thread Paulo da Silva
I am having problems posting to this list. So I am performing some tests to try to diagnose the problem to report to my ISP. Sorry for the inconvenience. Paulo -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://k

make modules_install when the kernel object files are in a different location than the kernel tree

2008-09-11 Thread Ian Brown
Hello, I have a kernel tree in /work/src/kern2.6 , and I created a folder elsewhere for building it; I configured the kernel with: make O=/work/kernObj menuconfig Afterwards,I build the kernel with: make O=/work/kernObj Now I want to install the modules into /lib/modules; how should I do it ? wh

Re: Request queues and bio structures

2008-09-11 Thread Manish Katiyar
On Tue, Sep 9, 2008 at 10:21 PM, Rohit Sharma <[EMAIL PROTECTED]> wrote: > I was going through block drivers, > i am not able to associate request queues and bio structures. > How are the requests processed using bio structures. > Can anyone provide me with block driver example or tutorial. This i

Re: Request queues and bio structures

2008-09-11 Thread MinChan Kim
On Thu, Sep 11, 2008 at 10:56 AM, Peter Teoh <[EMAIL PROTECTED]> wrote: > http://docs.blackfin.uclinux.org/doku.php?id=block_io_subsystem > http://docs.blackfin.uclinux.org/doku.php?id=basic_block_drivers > http://blog.chinaunix.net/u/15620/showart_510592.html Thanks for sharing your information.

Re: How to find my usb storage device mount point

2008-09-11 Thread mayur nande
I guess there are appropriate messages in /var/log/messages when you insert your USB drive. tail -n 20 /var/log/message should give you the mount point;for example sda or sdb. Reading this file may be a good idea. Regards Mayur On Thu, Sep 11, 2008 at 11:57 AM, Sandeep K Sinha <[EMAIL PROTECTED]>

Re: How to find my usb storage device mount point

2008-09-11 Thread Belisko Marek
Hi, On 9/11/08, Sandeep K Sinha <[EMAIL PROTECTED]> wrote: > Hi Ravi, > > On Thu, Sep 11, 2008 at 11:43 AM, ravikumar <[EMAIL PROTECTED]> > wrote: > > How to find out where is my usb storage device mounted on,I need to find > out using some program. > > I knew ,usb devices will usually mount on s

Re: How to find my usb storage device mount point

2008-09-11 Thread Sandeep K Sinha
Try suing the "mount" command that will surely provide you with the desired results. Thanks, Sandeep. On Thu, Sep 11, 2008 at 12:12 PM, ravikumar <[EMAIL PROTECTED]>wrote: > > Sandeep K Sinha wrote: > > Hi Ravi, > > On Thu, Sep 11, 2008 at 11:43 AM, ravikumar <[EMAIL PROTECTED]>wrote: > >> How