How to identify the SD card in Linux.

2011-09-06 Thread varun Yadav
Hi, I want to identify SD card in Linux, like if we connect a usb mass storage device and SD card then how we can identify the SD card. Is usb driver sending some information regarding device type, class or sub class to user spaceby which i can identify that connected device is sd card? Regards

Re: Paging of Kernel Memory

2011-09-06 Thread Mulyadi Santosa
Hi :) On Wed, Sep 7, 2011 at 09:44, ashish anand wrote: > Hi > on wed 7th sep  Christopher Harvey wrote >>>It means that it can't be swapped to your swap partition, even if >>>you're not using it. > >  this thing I understood it pretty well but what about the line > "Therefore, every byte of >  m

Paging of Kernel Memory

2011-09-06 Thread ashish anand
o disable preemption so that you will stay on > that CPU until put_cpu() is called. > > >From user-space, you can use sched_getcpu() to obtain the same > information. > > Hope this helps, > Alex. > > > > -- > > Message: 4 > Date: T

Re: project on linux kernel

2011-09-06 Thread Greg KH
On Tue, Sep 06, 2011 at 06:04:32PM -0400, Greg Freemyer wrote: > If so, you should see if anyone else is working on them. I'm not sure > how best to do that, but Greg KH is the maintainer that shepherds that > whole set of drivers, so he should know. As stated numerous times here in the past, jus

Re: project on linux kernel

2011-09-06 Thread Greg Freemyer
On Tue, Sep 6, 2011 at 3:08 PM, Mulyadi Santosa wrote: > On Tue, Sep 6, 2011 at 17:08, sugnan prabhu wrote: >>i am very much interested work on networking sub system, can you >please give >>me a project... > > I am not really into networking stuffs these days, so maybe folks here > could help...

Re: project on linux kernel

2011-09-06 Thread Mulyadi Santosa
On Tue, Sep 6, 2011 at 17:08, sugnan prabhu wrote: >i am very much interested work on networking sub system, can you >please give >me a project... I am not really into networking stuffs these days, so maybe folks here could helpfolks? -- regards, Mulyadi Santosa Freelance Linux trainer a

freeze_bdev

2011-09-06 Thread Mike Gibson
Which filesystems are supported by freeze_bdev? The man page for fsfreeze shows Ext3/4, ReiserFS, JFS, and XFS. Is this correct? Mike Gibson ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinf

Re: analysis of kernel panic logs.

2011-09-06 Thread anish singh
On Tue, Sep 6, 2011 at 10:14 PM, Dave Hylands wrote: > Hi Sandeep, > > On Mon, Sep 5, 2011 at 1:37 AM, sandeep kumar > wrote: > ...snip... >> As our analysis for the problem goes, >> init being the critical process, when killed, platform called a system call >> to restart the kernel. >> is it co

Re: analysis of kernel panic logs.

2011-09-06 Thread Dave Hylands
Hi Sandeep, On Mon, Sep 5, 2011 at 1:37 AM, sandeep kumar wrote: ...snip... > As our analysis for the problem goes, > init being the critical process, when killed, platform called a system call > to restart the kernel. > is it correct or we missd something? I'm not sure. What exactly do you mean

Re: Paging of Kernel Memory

2011-09-06 Thread Christopher Harvey
On Tue, 6 Sep 2011 17:48:12 +0530, Vijay Chauhan wrote: > Hi, > > i was going through the Linux Kernel Development book. It mention the > following: > > "Additionally, kernel memory is not pageable.Therefore, every byte of > memory you consume is one less byte of available physical memory." > > Wha

Paging of Kernel Memory

2011-09-06 Thread Vijay Chauhan
Hi, i was going through the Linux Kernel Development book. It mention the following: "Additionally, kernel memory is not pageable.Therefore, every byte of memory you consume is one less byte of available physical memory." What is the meaning of 'Kernel memory is not pageable'? Anyone can give de

How to identify Connected USB Storage device (Harddisk, flash Memory or SSD)

2011-09-06 Thread mani
Hi all, Is there any way to find out the type of the connected USB disk (Hard disk/SDD)? AFAIK there is a significant performance difference in Harddisk/SDD devices. Previously i though that the rotational flag in the sysfs will distinguish them but it is same for both the types #cat /sys/block

Re: Finding physical and logical core number in a kernel module ?

2011-09-06 Thread Alexandre Courbot
> I agree that the kernel module is not restricted to any core but is it > possible that whenever it is executed > it gives the core number whichever is executing it ? Have a look at the end of include/linux/smp.h: smp_processor_id() gives you the number of the current executing CPU. get_cpu() wil

CRC calculation in Module.symvers

2011-09-06 Thread Shakthi Kannan
Greetings! I would like to know as to: 1. How the CRC is computed for an exported symbol in the Linux kernel, and 2. Given a kernel .c file, how can I obtain the CRC checksums for a symbol. For linux-3.0.2 (example), I compiled with CONFIG_MODVERSIONS=y, and running make built vmlinux, and gener

Re: Re: Regarding threaded irq and normal irq

2011-09-06 Thread anish singh
On Tue, Sep 6, 2011 at 10:59 AM, anish singh wrote: > On Tue, Sep 6, 2011 at 10:51 AM, Mulyadi Santosa > wrote: >> Hi :) >> >> On 06/09/2011, sandeep kumar wrote: >>> Hmm..But when i tried to take a mutex lock in threaded_irq, it is throwing a >>> warning message >>> "BUG: sleeping function call