Re: rationale for sysfs attr store/show accepting kobj_attribute?

2011-05-11 Thread Robert P. J. Day
On Tue, 10 May 2011, Jim Cromie wrote: On Sun, May 8, 2011 at 3:23 AM, Robert P. J. Day rpj...@crashcourse.ca wrote:  more just a curiosity than anything else, but i'm perusing the kobject sample programs in the kernel source directory and in kobject-example.c, there's one thing about

trouble locating code that increments jiffies (arm)

2011-05-11 Thread chris
Hi list, I've been looking for the code that increments the jiffies variable as well as the code that connects a timer interrupt to the function that increments the variable. I'm working with the ARM architecture in case that makes a difference. I was also wondering, how many jiffies are

Re: module loading order

2011-05-11 Thread Greg KH
On Wed, May 11, 2011 at 09:00:30AM +0100, Simon Leung wrote: Hi all, This is a question that arose from a older kernel ( 2.6.21 ) but I think it's generic to all kernels. Actually this might not a question on the kernel itself at all. So here it goes, I'm using a USB 3G modem with this

Re: module loading order

2011-05-11 Thread Vikram Narayanan
This is a question that arose from a older kernel ( 2.6.21 ) but I think it's generic to all kernels. Actually this might not a question on the kernel itself at all. So here it goes, I'm using a USB 3G modem with this kernel. The system loads three modules for it: pl2303, option and

Re: module loading order

2011-05-11 Thread Greg KH
On Wed, May 11, 2011 at 09:38:28PM +0530, Vikram Narayanan wrote: This is a question that arose from a older kernel ( 2.6.21 ) but I think it's generic to all kernels. Actually this might not a question on the kernel itself at all. So here it goes, I'm using a USB 3G modem with this

rtc_ops structure

2011-05-11 Thread Vikram Narayanan
Hi, Is the structure rtc_ops still used in rtc drivers in the new kernels? If not, what is the equivalent of it? Thanks, Vikram ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How vmlinux is recognized?

2011-05-11 Thread Vikram Narayanan
On Thu, May 12, 2011 at 12:47 AM, Dave Hylands dhyla...@gmail.com wrote: Hi Vikram, On Wed, May 11, 2011 at 11:06 AM, Vikram Narayanan vikram...@gmail.com wrote: Hi, Sorry if this question is stupid. How the vmlinux (an ELF executable) is recognized by the processor? What are the files

Re: How vmlinux is recognized?

2011-05-11 Thread Vikram Narayanan
On Thu, May 12, 2011 at 1:15 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Thu, May 12, 2011 at 02:31, Vikram Narayanan vikram...@gmail.com wrote: So in case of x86, say Grub will be taking care of this extraction. Right? If, so the grub code will have the mechanisms for extracting

Re: How vmlinux is recognized?

2011-05-11 Thread Mulyadi Santosa
On Thu, May 12, 2011 at 03:04, Vikram Narayanan vikram...@gmail.com wrote: The vmlinux is an ELF binary. right? If so, Who does the unpacking of raw binary image from that ELF? why do you put concern on vmlinux anyway? boot loader loads vmlinuz, not vmlinux -- regards, Mulyadi Santosa

Re: How vmlinux is recognized?

2011-05-11 Thread Mulyadi Santosa
On Thu, May 12, 2011 at 03:11, Vikram Narayanan vikram...@gmail.com wrote: Yes. I agree. But how who converts the ELF binary to raw binary so that the processor understands. Or how is it actually done? OK I try my best to understand your question :) i think I got it...you probably guessed that

Re: How vmlinux is recognized?

2011-05-11 Thread Manohar Vanga
Hi Vikram, How the vmlinux (an ELF executable) is recognized by the processor? ELF is just a file format. That is, the machine instructions and data are stored in a specific format. The _processor_ simply recognizes machine instructions and this needs to be taken from the ELF file and loaded

Re: module loading order

2011-05-11 Thread Simon Leung
Yes, and so is the option module. But you are looking at a wierd device that somehow thinks it is both an option device, and a pl2303 device, which are totally different chipsets. thanks, greg k-h ___ Kernelnewbies mailing list

Re: module loading order

2011-05-11 Thread Greg KH
On Wed, May 11, 2011 at 10:24:28PM +0100, Simon Leung wrote: Yes, and so is the option module. But you are looking at a wierd device that somehow thinks it is both an option device, and a pl2303 device, which are totally different chipsets. If I understand modules.dep correctly, it

KGDB Setup problem

2011-05-11 Thread Prabhu nath
Dear All / Spiro, I tried setting up KGDB on my machine but somehow I am not finding my luck for past few months. Sprio. in his earlier mail had said about his success of setting up KGDB, Can you please share your notes of how to set up KGDB. If possibe please share the screen

Re: How vmlinux is recognized?

2011-05-11 Thread Vikram Narayanan
On Thu, May 12, 2011 at 2:03 AM, Manohar Vanga manohar.va...@gmail.com wrote: Hi Vikram, How the vmlinux (an ELF executable) is recognized by the processor? ELF is just a file format. That is, the machine instructions and data are stored in a specific format. The _processor_ simply

Re: How vmlinux is recognized?

2011-05-11 Thread Sudheer Divakaran
Hi Vikram, On Thu, May 12, 2011 at 9:02 AM, Vikram Narayanan vikram...@gmail.com wrote: On Thu, May 12, 2011 at 1:51 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Thu, May 12, 2011 at 03:11, Vikram Narayanan vikram...@gmail.com wrote: Yes. I agree. But how who converts the ELF

tools to identify bugs in driver

2011-05-11 Thread Amit Nagal
Hi , What are the mandatory tools that must be run to identify potential bugs ( say memory , locking etc ) in a linux device driver ? Regards Amit Nagal ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: tools to identify bugs in driver

2011-05-11 Thread Greg KH
On Thu, May 12, 2011 at 10:04:04AM +0530, Amit Nagal wrote: Hi , What are the mandatory tools that must be run to identify potential bugs ( say memory , locking etc ) in a linux device driver ? Turn lockdep and the kernel memory leak detector and run your driver and see what happens. Have