Re: driver copy_to_user

2010-12-19 Thread Michael Blizek
Hi! On 16:18 Fri 17 Dec , Hemanth Kumar wrote: Hi All, In my driver code I have interrupt which is exactly 1 sec(gps-pps), I want the data to be copied (copy_to_user) to the user space through read function,After the elapse of interrupt(1 sec gps-pps),how do I

Re: A query on page cache and writepage

2010-12-18 Thread Rajat Sharma
I am not sure if memory what for your filesystem needs mapping, may be to support binary execution. Do you really need to support Writable or Shared memory mappings? If you are good with Read-only mappings or Private memory mapping (which does not modify data in page cache but modify a temporary

Re: Regarding Raid1

2010-12-18 Thread Mulyadi Santosa
On Sat, Dec 18, 2010 at 13:25, Gaurav Mahajan gauravmahajan2...@gmail.com wrote: Hello all,             I am trying to understand the code for raid1.c  But I was not able to figure out the exact policies and protocols followed by the programmer . Can anybody tell me the policies like how

Re: PIC IO Memory Access Question

2010-12-18 Thread Mulyadi Santosa
Hi Daniel :) On Sat, Dec 18, 2010 at 11:33, YOUNGWHAN SONG breadn...@gmail.com wrote: Thank you for your interest on it, Mulyadi, and thanks for checking if the post in the mailing list. No problem... as long as you don't complain about stupidity :D To answer your question, a. I will

Re: Regarding Raid1

2010-12-18 Thread Greg Freemyer
On Sat, Dec 18, 2010 at 12:07 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sat, Dec 18, 2010 at 13:25, Gaurav Mahajan gauravmahajan2...@gmail.com wrote: Hello all, I am trying to understand the code for raid1.c But I was not able to figure out the exact

Re: Regarding Raid1

2010-12-18 Thread Mulyadi Santosa
Hi Greg... On Sun, Dec 19, 2010 at 00:53, Greg Freemyer greg.freem...@gmail.com wrote: Mulyadi, Raid is separately implemented in both MDRAID and DM. Oh s**t, I f**k *pthanks for the correction...didn't know about MDRAID DM (device mapper) is the newer code base that was created for

Re: Regarding Raid1

2010-12-18 Thread Greg Freemyer
On Sat, Dec 18, 2010 at 1:04 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi Greg... On Sun, Dec 19, 2010 at 00:53, Greg Freemyer greg.freem...@gmail.com wrote: Mulyadi, Raid is separately implemented in both MDRAID and DM. Oh s**t, I f**k *pthanks for the

Re: Regarding Raid1

2010-12-18 Thread Mulyadi Santosa
Hi Greg... On Sun, Dec 19, 2010 at 07:28, Greg Freemyer greg.freem...@gmail.com wrote: Both Raid 10 and Raid 1+0 effectively mean the same. The plus is basically implied unless you want Raid 0+1.  I've never seen that call raid 01. I think the use varies on how you build the array.  If

Re: strncpy_from_user called from invalid context?

2010-12-18 Thread Mulyadi Santosa
Hi Greg let us see the basic situation first...since I am not an expert either... On Sun, Dec 19, 2010 at 05:27, Greg Kerr ker...@gmail.com wrote: [  421.250737] BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1074 [  421.250742] in_atomic(): 0, irqs_disabled():

Re: writing boot loader

2010-12-17 Thread Wouter Simons
On 12/17/2010 08:03 AM, Adam Lee wrote: On Fri, Dec 17, 2010 at 2:36 PM, vamidhar s vamsidhar@gmail.com wrote: bcm53003 processod,bootloader has to done all low level initialisation low level initialisation? not the part I'm doing. broadcom haven't done this? This is like listening

Re: writing boot loader

2010-12-17 Thread Chaitannya Mahatme
Hi Vamidhar, You need to provide more information regarding your development. What bootloader you want to install / create depends on many factors What is your target application. Chip architecture : does it have MMU (most significant parameter) Is there a bootloader existing for

Re: writing boot loader

2010-12-17 Thread Anuz Pratap Singh Tomar
On Fri, Dec 17, 2010 at 8:46 AM, Mahatme chaitan...@gmail.com wrote: Hi Vamidhar, You need to provide more information regarding your development. What bootloader you want to install / create depends on many factors 1. What is your target application. 2. Chip architecture : does

Re: writing boot loader

2010-12-17 Thread Chaitannya Mahatme
On Friday 17 December 2010 03:05 PM, Anuz Pratap Singh Tomar wrote: On Fri, Dec 17, 2010 at 8:46 AM, Mahatme chaitan...@gmail.com wrote: Hi Vamidhar, You need to provide more information regarding your development. What bootloader you want to install / create depends on

Re: skb_pull crashes the kernel

2010-12-17 Thread Daniel Baluta
On Fri, Dec 17, 2010 at 1:51 PM, sugnan prabhu sugnan.pra...@gmail.com wrote: Hello,      I have written a usb device driver, which displays receives the data exactly as am sending from the device, but as soon i call skb_pull(skb, 1) it crashes the kernel. It doesn even call netif_rx(skb) to

RE: skb_pull crashes the kernel

2010-12-17 Thread Smital Desai
__ From: kernelnewbies-bou...@nl.linux.org [kernelnewbies-bou...@nl.linux.org] On Behalf Of sugnan prabhu [sugnan.pra...@gmail.com] Sent: Friday, December 17, 2010 5:21 PM To: kernelnewbies@nl.linux.org Subject: skb_pull crashes the kernel Hello, I have written a usb

Re: PIC IO Memory Access Question

2010-12-17 Thread Daniel (Youngwhan) Song
Sorry to send this to Mulyadi, but somehow, posting to kernelnewbie is not seen to me. So, Mulyadi, if you haven't gotten this message from kernelnewbie directly, would you let me know if you are available, please? (I am terribly sorry, but you are only one person I know here.) Thank you in

Re: PIC IO Memory Access Question

2010-12-17 Thread Mulyadi Santosa
Hi Daniel :) On Sat, Dec 18, 2010 at 04:46, Daniel (Youngwhan) Song breadn...@gmail.com wrote: Sorry to send this to Mulyadi, but somehow, posting to kernelnewbie is not seen to me. So, Mulyadi, if you haven't gotten this message from kernelnewbie directly, would you let me know if you are

Re: PIC IO Memory Access Question

2010-12-17 Thread Mulyadi Santosa
Hi Daniel :) On Sat, Dec 18, 2010 at 04:31, Daniel (Youngwhan) Song breadn...@gmail.com wrote: Hi, there, I am currently using regular X86 32 bit architecture having PCI and PCIe interface in a certain embedded system. One of PCIe device is attached, and I am trying to load the kernel

Re: PIC IO Memory Access Question

2010-12-17 Thread YOUNGWHAN SONG
On Dec 17, 2010, at 4:46 PM, Mulyadi Santosa wrote: Hi Daniel :) On Sat, Dec 18, 2010 at 04:31, Daniel (Youngwhan) Song breadn...@gmail.com wrote: Hi, there, I am currently using regular X86 32 bit architecture having PCI and PCIe interface in a certain embedded system. One of PCIe

Re: ext3_inode_info i_datasync_tid field

2010-12-17 Thread Manish Katiyar
On Fri, Dec 10, 2010 at 10:27 AM, Onkar Mahajan kern.de...@gmail.com wrote: What is the use of i_datasync_tid in the ext3_inode_info struct ? Hi Onkar, This seems to be in conjunction with the field i_sync_tid in the inode structure. They are used to store the transaction id of the journal.

Re: Handy References for Linux Device Drivers Developer

2010-12-16 Thread Anuz Pratap Singh Tomar
On Thu, Dec 16, 2010 at 8:27 AM, Pradeep Kumar pradeep4uii...@gmail.comwrote: hi all, I am new to kernel device drivers field. Any suggestions about the references to follow for quick overview and detailed flow of code in Linux Kernel. Look the end of this link: there are some

Re: Handy References for Linux Device Drivers Developer

2010-12-16 Thread Tapas Mishra
On Thu, Dec 16, 2010 at 1:57 PM, Pradeep Kumar pradeep4uii...@gmail.comwrote: hi all, I am new to kernel device drivers field. Any suggestions about the references to follow for quick overview and detailed flow of code in Linux Kernel. thanks, Goudagunta Pradeep Kumar,

Re: Handy References for Linux Device Drivers Developer

2010-12-16 Thread Tapas Mishra
I forgot to mention the best way to learn these type of things is to start playing with it.(Start working rather than reading books) I do not know if you experienced this in past but this is a good way. Pick up a project and start working on it. (For example you can start with file system

Re: issue with Vmalloc

2010-12-16 Thread naveen yadav
Nice document, This document have good info . On Tue, Dec 14, 2010 at 10:39 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi On Tue, Dec 14, 2010 at 23:17, Josh Cartwright jo...@linux.com wrote: Sorry that I don't have a complete answer, but IIRC, the VmallocChunk just the

Re: issue with Vmalloc

2010-12-16 Thread Mulyadi Santosa
On Fri, Dec 17, 2010 at 11:18, naveen yadav yad.nav...@gmail.com wrote: Nice document, This document have good info . Thanks :) If you have feedback or corrections, please let me know so I could possibly release erratas... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant

Re: writing boot loader

2010-12-16 Thread Adam Lee
On Fri, Dec 17, 2010 at 1:59 PM, vamidhar s vamsidhar@gmail.com wrote: hi, according to board requirement i need to write  cfe bootloader. i am new to this ,can you give me any suggestion,how to start. CFE...BroadCom's? -- Regards, Adam Lee

RE: capturing kernel oops

2010-12-16 Thread Tayade, Nilesh
-Original Message- From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies- bou...@nl.linux.org] On Behalf Of Paavaanan Sent: Friday, December 17, 2010 11:26 AM To: Kernelnewbie Subject: capturing kernel oops Hi, kernel Panic and Crashes can be logged and traced with the

Re: writing boot loader

2010-12-16 Thread Adam Lee
On Fri, Dec 17, 2010 at 2:36 PM, vamidhar s vamsidhar@gmail.com wrote: bcm53003 processod,bootloader has to done all low level initialisation low level initialisation? not the part I'm doing. broadcom haven't done this? -- Regards, Adam Lee

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-15 Thread Prabhu nath
Hi Rik, Thanks for all your support in having this on a new name. New mailing alias will be *kernelnewbies.**kernelnewbies.org* and mail-id will be *kernelnewb...@**kernelnewbies.org*. Is that right ? Thanks, Prabhu On Tue, Dec 14, 2010 at 11:35 PM, Rik van Riel r...@surriel.com wrote:

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-15 Thread Rik van Riel
On 12/15/2010 04:08 AM, Prabhu nath wrote: Hi Rik, Thanks for all your support in having this on a new name. New mailing alias will be *kernelnewbies.**kernelnewbies.org http://kernelnewbies.org* and mail-id will be *kernelnewb...@**kernelnewbies.org http://kernelnewbies.org*. Is that

Re: book or reference about writing userspace program

2010-12-15 Thread Michael Kerrisk
On 7/28/2009 7:52 AM, Michael Kerrisk wrote: Anuz Pratap Singh Tomar wrote: 1 W richard Stevens' Advance programming in Unix FTW 2 Rick stones's Beginning Linux Programming wrox publication 3 New rider publications Advance programming in Linux, (http://www.advancedlinuxprogramming.com/) 4 Linux

Re: What is the practical significance of fork

2010-12-15 Thread Jose Celestino
On Qua, 2010-12-15 at 23:31 +0530, Chaitannya Mahatme wrote: Hello Everyone, I tried finding answer to this question in many books but never quite got a satisfactory answer to this question. A fork process would replicate it parent, my question is 1. Why is fork necessary to create

Re: What is the practical significance of fork

2010-12-15 Thread Mulyadi Santosa
Hi :) On Thu, Dec 16, 2010 at 01:01, Chaitannya Mahatme chaitan...@gmail.com wrote: I tried finding answer to this question in many books but never quite got a satisfactory answer to this question. Satisfaction is hard to reach sometimes, you know :) A fork process would replicate it parent,

Re: What is the practical significance of fork

2010-12-15 Thread Greg Freemyer
On Wed, Dec 15, 2010 at 1:34 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi :) On Thu, Dec 16, 2010 at 01:01, Chaitannya Mahatme chaitan...@gmail.com wrote: I tried finding answer to this question in many books but never quite got a satisfactory answer to this question.

Re: What is the practical significance of fork

2010-12-15 Thread Enrico Granata
I believe his question actually sounds like: why does Linux need two system calls to start running a new program? Wouldn't it be simpler to do this the way Win32 does it: a CreateProcess() system call that actually loads a NEW program in NEW process? Enrico Granata Computer Science

Re: What is the practical significance of fork

2010-12-15 Thread John Mahoney
On Wed, Dec 15, 2010 at 1:50 PM, Enrico Granata egran...@ucsd.edu wrote: I believe his question actually sounds like: why does Linux need two system calls to start running a new program? Wouldn't it be simpler to do this the way Win32 does it: a CreateProcess() system call that actually loads a

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-15 Thread julie Sullivan
On Tue, Dec 14, 2010 at 7:23 PM, Greg Freemyer greg.freem...@gmail.comwrote: Rik, Many thanks to the university IT department and to you personally for administering this list. Its a great asset to kernel newbies. Greg Big +1 to this. Thanks for all your efforts, Rik - it's so much

Re: What is the practical significance of fork

2010-12-15 Thread Dave Hylands
HI Greg, So == if (vfork())     execve(...) == would be ultra-lightweight at the fork level because not even the page tables would be copied.  I didn't know that.  Seems extremely useful for huge programs that need to spin-off a little task. Always something new to learn. That's my

Re: What is the practical significance of fork

2010-12-15 Thread Rik van Riel
On 12/15/2010 01:01 PM, Chaitannya Mahatme wrote: Hello Everyone, I tried finding answer to this question in many books but never quite got a satisfactory answer to this question. A fork process would replicate it parent, my question is 1. Why is fork necessary to create a process. Why

Re: What is the practical significance of fork

2010-12-15 Thread Michael Blizek
Hi! On 23:31 Wed 15 Dec , Chaitannya Mahatme wrote: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta http-equiv=content-type content=text/html; charset=ISO-8859-1 /head body text=#00 bgcolor=#ff Hello Everyone,br br I tried finding answer to this

Re: SRIO user level interface

2010-12-15 Thread Anuz Pratap Singh Tomar
On Thu, Dec 16, 2010 at 6:39 AM, Asha R rd.ash...@gmail.com wrote: Hi All, I am working on Serial rapidio (SRIO) linux driver. The SRIO interface is up. I want to write an user level application for SRIO interfaces. (ex: doorbell send, doorbell receive). To do this, i am not seeing file

Re: SRIO user level interface

2010-12-15 Thread Wouter Simons
On 12/16/2010 07:39 AM, Asha R wrote: Please help me in understanding about how to create endpoint in /dev directory. I do not know the driver you speak off, but the device nodes are made based on functions in the driver and mknod when loading the driver or udev. Does your driver implement

Re: SRIO user level interface

2010-12-15 Thread Dave Hylands
Hi Asha, On Wed, Dec 15, 2010 at 10:39 PM, Asha R rd.ash...@gmail.com wrote: Hi All, I am working on Serial rapidio (SRIO)  linux driver. The SRIO interface is up. I want to write an user level application for SRIO interfaces.  (ex: doorbell send, doorbell receive). To do this, i am not

Re: EXPORT_SYMBOL

2010-12-14 Thread Hemanth Kumar
Hi Wouter, Thanks for the info, Regards, --- On Tue, 14/12/10, Wouter Simons l...@woutersimons.org wrote: From: Wouter Simons l...@woutersimons.org Subject: Re: EXPORT_SYMBOL To: Hemanth Kumar hemw...@yahoo.co.in Cc: Mulyadi Santosa mulyadi.sant...@gmail.com, Robert P. J

Re: some questions about times

2010-12-14 Thread loody
Dear all: 2010/12/10 loody milo...@gmail.com: hi: 2010/12/10 pradeep singh pradeep.raut...@gmail.com: On Dec 10, 2010 6:39 AM, loody milo...@gmail.com wrote: hi Muyadi: 2010/12/10 Mulyadi Santosa mulyadi.sant...@gmail.com: Hi... On Thu, Dec 9, 2010 at 21:56, loody milo...@gmail.com

Re: issue with Vmalloc

2010-12-14 Thread Josh Cartwright
On Tue, Dec 14, 2010 at 08:47:25PM +0530, naveen yadav wrote: Hi All, I have one question, if I do cat /proc/meminfo and do sum of VmallocTotal (114680 kB)=VmallocUsed(4440 kB)+VmallocChunk(109804 kB) is not equal, there is difference. why it is there ? is it related for ioremap ?. 2.

Re: EXPORT_SYMBOL

2010-12-14 Thread Mulyadi Santosa
Just to add something from my stupidity land :) On Tue, Dec 14, 2010 at 13:33, Wouter Simons l...@woutersimons.org wrote: As for the compiler version, as long as the compiled binaries are compatible it is possible to use a different GCC version. Hm, yes...but not really like that :) different

Re: issue with Vmalloc

2010-12-14 Thread Mulyadi Santosa
Hi On Tue, Dec 14, 2010 at 23:17, Josh Cartwright jo...@linux.com wrote: Sorry that I don't have a complete answer, but IIRC, the VmallocChunk just the largest chunk of the vmalloc region that is unused (so, its a sort of cheap measure of how fragmented the region is) - not the measure of

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-14 Thread Greg Freemyer
Rik, Many thanks to the university IT department and to you personally for administering this list. Its a great asset to kernel newbies. Greg On Tue, Dec 14, 2010 at 1:05 PM, Rik van Riel r...@surriel.com wrote: The university IT department which has graciously hosted nl.linux.org for the

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-14 Thread Mulyadi Santosa
On Wed, Dec 15, 2010 at 01:05, Rik van Riel r...@surriel.com wrote: The university IT department which has graciously hosted nl.linux.org for the last several years is about to stop existing. Ouch, but anyway, bad things happen in this life...so, univ IT department whoever you are...thanks a

Re: ADMIN: end of nl.linux.org, lists will move

2010-12-14 Thread lijin liu
Got it! Thanks a lot! On Wed, Dec 15, 2010 at 2:05 AM, Rik van Riel r...@surriel.com wrote: The university IT department which has graciously hosted nl.linux.org for the last several years is about to stop existing. I will be moving many of the nl.linux.org services to my own systems and

Re: QEMU Uncompressing Linux.... stalls

2010-12-13 Thread Prasad Joshi
On Mon, Dec 13, 2010 at 7:44 AM, onlyfever onlyfe...@gmail.com wrote: 2010/12/9, Prasad Joshi prasadjoshi...@gmail.com: Thanks a lot for your reply. On Thu, Dec 9, 2010 at 1:06 AM, Alexandre Courbot gnu...@gmail.com wrote: Hi, There is probably a kernel misconfiguration somewhere. Could you

Re: EXPORT_SYMBOL

2010-12-13 Thread Hemanth Kumar
Hi Mulaydi Robert, Below is the info that is requested, --- On Sun, 12/12/10, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: From: Mulyadi Santosa mulyadi.sant...@gmail.com Subject: Re: EXPORT_SYMBOL To: Hemanth Kumar hemw...@yahoo.co.in Cc: Robert P. J. Day rpj

Re: QEMU Uncompressing Linux.... stalls

2010-12-13 Thread Prasad Joshi
On Mon, Dec 13, 2010 at 7:53 AM, Prasad Joshi prasadjoshi...@gmail.com wrote: On Mon, Dec 13, 2010 at 7:44 AM, onlyfever onlyfe...@gmail.com wrote: 2010/12/9, Prasad Joshi prasadjoshi...@gmail.com: Thanks a lot for your reply. On Thu, Dec 9, 2010 at 1:06 AM, Alexandre Courbot gnu...@gmail.com

Re: EXPORT_SYMBOL

2010-12-13 Thread Mulyadi Santosa
Hi Hemanth. On Mon, Dec 13, 2010 at 17:05, Hemanth Kumar hemw...@yahoo.co.in wrote: Hi Mulaydi Robert,                Below is the info that is requested, OK let's see --- On Sun, 12/12/10, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: GCC _  arm-none-linux-gnueabi-gcc

Re: why vmalloc free with fdtable is done with workqueue?

2010-12-13 Thread Dave Hylands
HI Sangman, On Mon, Dec 13, 2010 at 3:31 PM, Sangman Kim sangm...@cs.utexas.edu wrote: Hi Kernel people, As I look at the kernel source, I got some curiosity regarding the context of fdtable deallocation. From fs/file.c, I could see fdtable allocated with vmalloc (large fdtable) is

Re: EXPORT_SYMBOL

2010-12-13 Thread Hemanth Kumar
Hi Mulyadi and Robert, --- On Mon, 13/12/10, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: From: Mulyadi Santosa mulyadi.sant...@gmail.com Subject: Re: EXPORT_SYMBOL To: Hemanth Kumar hemw...@yahoo.co.in Cc: Robert P. J. Day rpj...@crashcourse.ca, kernelnewbies@nl.linux.org Date: Monday

Re: EXPORT_SYMBOL

2010-12-13 Thread Wouter Simons
On 12/14/2010 06:00 AM, Hemanth Kumar wrote: Hi Mulyadi and Robert, [...] itor disable module versioning entirely... Thanks for your time and suggestions,I solved this problem, I added the two modules in kernel dir(driver/misc/),updated Makefile,Kconfig file

Re: EXPORT_SYMBOL

2010-12-12 Thread Hemanth Kumar
config?? Regards,   --- On Sat, 11/12/10, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: From: Mulyadi Santosa mulyadi.sant...@gmail.com Subject: Re: EXPORT_SYMBOL To: Robert P. J. Day rpj...@crashcourse.ca Cc: Hemanth Kumar hemw...@yahoo.co.in, kernelnewbies@nl.linux.org Date: Saturday, 11

Re: EXPORT_SYMBOL

2010-12-12 Thread Mulyadi Santosa
Dear Hemanth... On Sun, Dec 12, 2010 at 18:06, Hemanth Kumar hemw...@yahoo.co.in wrote: I tried the same idea on this mail,it is not working it is still giving the same error, But I tried in CSB667 CSB337 it work's fine not on omap-3630 board, I am still facing

Re: EXPORT_SYMBOL

2010-12-12 Thread Hemanth Kumar
Hi Mulyadi and Robert, --- On Sun, 12/12/10, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: From: Mulyadi Santosa mulyadi.sant...@gmail.com Subject: Re: EXPORT_SYMBOL To: Hemanth Kumar hemw...@yahoo.co.in Cc: Robert P. J. Day rpj...@crashcourse.ca, kernelnewbies@nl.linux.org Date: Sunday, 12

Re: EXPORT_SYMBOL

2010-12-11 Thread Robert P. J. Day
On Fri, 10 Dec 2010, Hemanth Kumar wrote: Hi Robert,   The code works well on i386 box kernel-2.6.32.9,but i have problem on ARM omap , kernel-2.6.32.9 when I do nm m3.ko   it show's ( U rday_3)   cat /proc/kallsyms | grep rday_3     bf011094 D rday_3 [m2]      but when i

Re: EXPORT_SYMBOL

2010-12-11 Thread Robert P. J. Day
On Sat, 11 Dec 2010, Hemanth Kumar wrote: Hi Robert Mulyadi,     I am using ARM omap-3630 and kernel-2.6.32.9 android froyo gcc-4.2.1,     dmesg also show's the same message unresolved symbol rday_3,     I have a question does i need tog enable

Re: EXPORT_SYMBOL

2010-12-11 Thread Hemanth Kumar
on this issue will be helpfull. regards, hemanth --- On Sat, 11/12/10, Robert P. J. Day rpj...@crashcourse.ca wrote: From: Robert P. J. Day rpj...@crashcourse.ca Subject: Re: EXPORT_SYMBOL To: Hemanth Kumar hemw...@yahoo.co.in Cc: kernelnewbies@nl.linux.org Date: Saturday, 11 December, 2010, 2:01

Re: EXPORT_SYMBOL

2010-12-11 Thread Mulyadi Santosa
Hi all... On Sat, Dec 11, 2010 at 17:03, Robert P. J. Day rpj...@crashcourse.ca wrote:  perhaps mulyadi had the right idea -- that gcc is simply optimizing that symbol away.  add some code to that first module that does something with that symbol, perhaps prints it, just to make sure gcc

Re: How to run a hello world module

2010-12-11 Thread Aiolia Lea
Hi, This is a wonderful tutorial for linux kernel module programming step by step. http://tldp.org/LDP/lkmpg/2.6/lkmpg.pdf Hope you like it~~ On Sat, Dec 11, 2010 at 12:46 PM, Chaitannya Mahatme chaitan...@gmail.comwrote: On Friday 10 December 2010 08:06 AM, John Mahoney wrote: On Thu,

Re: e100 driver's data sheet

2010-12-10 Thread Jeff Kirsher
On Fri, Dec 10, 2010 at 01:41, Prabhu nath gprabhun...@gmail.com wrote: Dear All,    I am trying to understand and analyse Ethernet driver of the device 03:01.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 08).    Google search couldn't find

Re: e100 driver's data sheet

2010-12-10 Thread Prabhu nath
Thanks a lot. Prabhu On Fri, Dec 10, 2010 at 3:33 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Fri, Dec 10, 2010 at 16:41, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I am trying to understand and analyse Ethernet driver of the device 03:01.0 Ethernet

Re: QEMU Uncompressing Linux.... stalls

2010-12-10 Thread Prasad Joshi
On Thu, Dec 9, 2010 at 7:41 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Fri, Dec 10, 2010 at 02:06, Prasad Joshi prasadjoshi...@gmail.com wrote: After trying most of the block devices to boot the kernel under QEMU, I added few printks around the code that does the mounting. The

Re: create_proc_entry hangs the kernel

2010-12-10 Thread Daniel Baluta
On Fri, Dec 10, 2010 at 1:49 PM, Giriprasad Deviprasad g_p...@yahoo.in wrote: Hi,  The following program hangs the kernel, when the insmod on it, is run. Can any one provide ideas why : #include linux/module.h   // for init_module() #include linux/proc_fs.h  // for

Re: create_proc_entry hangs the kernel

2010-12-10 Thread Daniel Baluta
On Fri, Dec 10, 2010 at 2:18 PM, Daniel Baluta daniel.bal...@gmail.com wrote: On Fri, Dec 10, 2010 at 1:49 PM, Giriprasad Deviprasad g_p...@yahoo.in wrote: Hi,  The following program hangs the kernel, when the insmod on it, is run. Can any one provide ideas why : #include linux/module.h 

Re: EXPORT_SYMBOL

2010-12-10 Thread Robert P. J. Day
On Fri, 10 Dec 2010, Hemanth Kumar wrote: Hi All,     I was working with the example from http://ldn.linuxfoundation.org/article/kernel-symbols-whats-available-your-module-what-isnt that stuff is a bit dated but, still, it should work.     I am getting the error unresolved symbol

Re: EXPORT_SYMBOL

2010-12-10 Thread Hemanth Kumar
   this bit strange,Can please share some idea on this. Regards, Hemanth --- On Fri, 10/12/10, Robert P. J. Day rpj...@crashcourse.ca wrote: From: Robert P. J. Day rpj...@crashcourse.ca Subject: Re: EXPORT_SYMBOL To: Hemanth Kumar hemw...@yahoo.co.in Cc: kernelnewbies@nl.linux.org Date: Friday, 10

Re: EXPORT_SYMBOL

2010-12-10 Thread Wouter Simons
if rday_3 was exported properly, i don't see why it shouldn't be visible when this module is loaded. anyone else have some thoughts on this? this clearly worked in the past. rday The code looks fine, the only time I ever had similar issues was when I had my module license

Re: EXPORT_SYMBOL

2010-12-10 Thread Robert P. J. Day
On Fri, 10 Dec 2010, Hemanth Kumar wrote: Hi Robert,   The code works well on i386 box kernel-2.6.32.9,but i have problem on ARM omap , kernel-2.6.32.9 when I do nm m3.ko   it show's ( U rday_3)   cat /proc/kallsyms | grep rday_3     bf011094 D rday_3 [m2] ok, that looks

Re: EXPORT_SYMBOL

2010-12-10 Thread Mulyadi Santosa
Excuse me for any possible stupidity in the following answers :D On Fri, Dec 10, 2010 at 21:16, Robert P. J. Day rpj...@crashcourse.ca wrote: On Fri, 10 Dec 2010, Hemanth Kumar wrote:   I am getting the error unresolved symbol rday_3, ARCH=arm omap kernel=2.3.32.9   insmod m2.ko   then  

Re: How to run a hello world module

2010-12-10 Thread John Mahoney
Hi! On Thu, Dec 9, 2010 at 10:34 PM, Chaitannya Mahatme chaitan...@gmail.com wrote: Hey John, That resolved the error. Actually I was building the module for the newly compiled kernel, but should have built for the kernel I am running on my system. Thanks for the link ! Best of luck!

Re: EXPORT_SYMBOL

2010-12-10 Thread Mulyadi Santosa
Hi Rob On Sat, Dec 11, 2010 at 00:23, Robert P. J. Day rpj...@crashcourse.ca wrote: On Fri, 10 Dec 2010, Mulyadi Santosa wrote:   then i did cat /proc/kallsyms | grep rday_3    i can see the rday_3 in that file,But still I am unable to insmod the m3.ko The address you gaveif I

Re: How to run a hello world module

2010-12-10 Thread Chaitannya Mahatme
On Friday 10 December 2010 08:06 AM, John Mahoney wrote: On Thu, Dec 9, 2010 at 8:51 PM, Chaitannya Mahatme chaitan...@gmail.com wrote: Hello everyone, I am trying to compile a hello world module given overhere I have followed the following step. Downloaded Linux kernel

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Prasad Joshi
Thanks a lot for your reply. On Thu, Dec 9, 2010 at 1:06 AM, Alexandre Courbot gnu...@gmail.com wrote: Hi, There is probably a kernel misconfiguration somewhere. Could you post your .config, and maybe even your vmlinux somewhere where we can download it? Yes it was misconfiguration. I had

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Alexandre Courbot
Also, you can use QEmu's GDB server in order to see exactly where your kernel stops executing. This should be much more comfortable than putting printfs into QEmu's code. If you don't know how it works, look here for a short explanation: http://wiki.osdev.org/GDB Thanks a lot for I was

Re: mutex unlock order

2010-12-09 Thread Leon Woestenberg
Hello, On Thu, Dec 9, 2010 at 7:49 AM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: I have came upon an interesting situation where I am not sure about mutex semantics. What I want to do is something like this: mutex_lock(global_lock); mutex_lock(small_lock);

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Prasad Joshi
On Thu, Dec 9, 2010 at 12:34 PM, Alexandre Courbot gnu...@gmail.com wrote: Also, you can use QEmu's GDB server in order to see exactly where your kernel stops executing. This should be much more comfortable than putting printfs into QEmu's code. If you don't know how it works, look here for

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Alexandre Courbot
$ qemu-system-arm -M realview-pbx-a9 -kernel clfskernel-2.6.36 -hda initrd-rootfs.img -append console=ttyAMA0 root=/dev/hda1 ro mem=256M -m 1024 -nographic ... VFS: Cannot open root device hda1 or unknown-block(0,0) Please append a correct root= boot option; here are the available

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Prasad Joshi
On Thu, Dec 9, 2010 at 1:54 PM, Alexandre Courbot gnu...@gmail.com wrote: $ qemu-system-arm -M realview-pbx-a9 -kernel clfskernel-2.6.36 -hda initrd-rootfs.img -append console=ttyAMA0 root=/dev/hda1 ro mem=256M -m 1024 -nographic ... VFS: Cannot open root device hda1 or unknown-block(0,0)

Re: some questions about times

2010-12-09 Thread Mulyadi Santosa
Hi... On Thu, Dec 9, 2010 at 21:56, loody milo...@gmail.com wrote: Deal all: I have some questions about times in #include sys/times.h. As far as I know, times will get process and waited-for child process times. so if the child is not finish or dead, this function will cause the deadlock,

Re: mutex unlock order

2010-12-09 Thread Mulyadi Santosa
Hi... On Thu, Dec 9, 2010 at 19:46, Leon Woestenberg leon.woestenb...@gmail.com wrote: Hello, On Thu, Dec 9, 2010 at 7:49 AM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Why not do this, i.e. acquire the locks in the other order, then release the global lock first:

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Prasad Joshi
After trying most of the block devices to boot the kernel under QEMU, I added few printks around the code that does the mounting. The function mount_root() in file init/do_mounts.c, mounts the root file system. Using following code printk(\n\nmajor=%d minor=%d\n\n, MAJOR(ROOT_DEV),

Re: mutex unlock order

2010-12-09 Thread Mulyadi Santosa
Hi Michael.. On Fri, Dec 10, 2010 at 00:17, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: The problem is something like this: I want to allocate a buffer and then receive some data. To prevent out-of-memory when the sender is slow, there is a limit on how much buffer can be

Re: QEMU Uncompressing Linux.... stalls

2010-12-09 Thread Mulyadi Santosa
On Fri, Dec 10, 2010 at 02:06, Prasad Joshi prasadjoshi...@gmail.com wrote: After trying most of the block devices to boot the kernel under QEMU, I added few printks around the code that does the mounting. The function mount_root() in file init/do_mounts.c, mounts the root file system. Using

Re: some questions about times

2010-12-09 Thread loody
hi Muyadi: 2010/12/10 Mulyadi Santosa mulyadi.sant...@gmail.com: Hi... On Thu, Dec 9, 2010 at 21:56, loody milo...@gmail.com wrote: Deal all: I have some questions about times in #include sys/times.h. As far as I know, times will get process and waited-for child process times. so if the

Re: some questions about times

2010-12-09 Thread Dave Hylands
Hi miloody, On Thu, Dec 9, 2010 at 4:58 PM, loody milo...@gmail.com wrote: ...snip... But I man nothing about times. $ man 2 times No manual entry for times in section 2 $ I use die.net when I don't have access to man pages: http://linux.die.net/man/2/times -- Dave Hylands Shuswap, BC,

Re: How to run a hello world module

2010-12-09 Thread John Mahoney
On Thu, Dec 9, 2010 at 8:51 PM, Chaitannya Mahatme chaitan...@gmail.com wrote: Hello everyone, I am trying to compile a hello world module given over here I have followed the following step. Downloaded Linux kernel 2.6.35-rc5 If you are running a distribution like most people be sure you

Re: How to run a hello world module

2010-12-09 Thread Dave Hylands
Hi Chaitannya, On Thu, Dec 9, 2010 at 5:51 PM, Chaitannya Mahatme chaitan...@gmail.com wrote: Hello everyone, I am trying to compile a hello world module given over here I have followed the following step. Downloaded Linux kernel 2.6.35-rc5 extracted to directory /general/source/linux

Re: Video driver error(?)

2010-12-09 Thread Alex John
Turns out the drive was running out of space. I was compiling into an external drive and accidentally set the ccache directory on the same partition so when it grew ... yeah. Sorry for the trouble.

Re: Video driver error(?)

2010-12-09 Thread Mulyadi Santosa
On Fri, Dec 10, 2010 at 12:41, Alex John a...@archeleus.com wrote: Turns out the drive was running out of space. I was compiling into an external drive and accidentally set the ccache directory on the same partition so when it grew ... yeah. Sorry for the trouble. No problem...it adds

Re: How to run a hello world module

2010-12-09 Thread Robert P. J. Day
On Thu, 9 Dec 2010, John Mahoney wrote: On Thu, Dec 9, 2010 at 8:51 PM, Chaitannya Mahatme chaitan...@gmail.com wrote: Hello everyone, I am trying to compile a hello world module given over here I have followed the following step. Downloaded Linux kernel 2.6.35-rc5 If you are

Re: some questions about times

2010-12-09 Thread pradeep singh
On Dec 10, 2010 6:39 AM, loody milo...@gmail.com wrote: hi Muyadi: 2010/12/10 Mulyadi Santosa mulyadi.sant...@gmail.com: Hi... On Thu, Dec 9, 2010 at 21:56, loody milo...@gmail.com wrote: Deal all: I have some questions about times in #include sys/times.h. As far as I know, times

Re: some questions about times

2010-12-09 Thread loody
hi: 2010/12/10 pradeep singh pradeep.raut...@gmail.com: On Dec 10, 2010 6:39 AM, loody milo...@gmail.com wrote: hi Muyadi: 2010/12/10 Mulyadi Santosa mulyadi.sant...@gmail.com: Hi... On Thu, Dec 9, 2010 at 21:56, loody milo...@gmail.com wrote: Deal all: I have some questions about

Re: Compiling for two different processors

2010-12-08 Thread John Mahoney
Just a heads up. Try not to top post here. See my comment inline. On Dec 8, 2010, at 2:10 AM, Alex John a...@archeleus.com wrote: Thanks, I'll compile for P4 then. I was just thinking and realized the core2 may have been based off the p3 arch and the p4 was a dead end, but normally with intel

  1   2   3   4   5   6   7   8   9   10   >