Re: EXPORT_SYMBOL Vs extern?

2008-05-05 Thread Li Zefan
pradeep singh wrote: Hi All, A Quick but perhaps dumbass query, 1. int function_A(...) { ...; } 2. int function_B(...) { ...; } EXPORT_SYMBOL(function_B); Okay i understand I should use the EXPORT_SYMBOL way if i want function_B to be used

RE: EXPORT_SYMBOL Vs extern?

2008-05-05 Thread Rajat Jain
Hi, Is it a compulsion for a function which need to be used in any other source file, exported through EXPORT_SYMBOL only? Does this means all the places in kernel(and there are loads of them), where a function is non-static and is used in other source files should actually be using

Re: how to kernel debugging

2008-05-05 Thread arshad hussain
Missed the forum Again!!! On 5/5/08, arshad hussain [EMAIL PROTECTED] wrote: On 5/5/08, amol verule [EMAIL PROTECTED] wrote: hi to all, i am new to kernel .can any one tell me about document for debugging kernel. is any patch is require for it i.e kdb kgdb? Yes. IMHO even

Re: how to kernel debugging

2008-05-05 Thread Mulyadi Santosa
Hi... On Mon, May 5, 2008 at 11:34 AM, amol verule [EMAIL PROTECTED] wrote: hi to all, i am new to kernel .can any one tell me about document for debugging kernel. is any patch is require for it i.e kdb kgdb? in 2.6.25.x, IIRC...kgdb is already merged... please cross check by digging LWN.net

Re: USER_DS in kernel threrad creation?

2008-05-05 Thread Mulyadi Santosa
Allow me to share my thoughts... On Sat, May 3, 2008 at 4:06 AM, Anirban Sinha [EMAIL PROTECTED] wrote: I was poring over the arch/x86/process_32.c:kernel_thread() code. Apparently (and surprisingly) it sets the kernel threads ds and es register to __USER_DS. I saw a very old thread on the

Re: why kernel use git instead of CVS or SVN

2008-05-05 Thread Mulyadi Santosa
Hi On Sun, May 4, 2008 at 3:38 PM, Scott Lovenberg [EMAIL PROTECTED] wrote: Linus explains it in his intro, IIRC. YouTube - Tech Talk: Linus Torvalds on git Sorry for my personal rambling, the Indonesian govt block YouTube gr regards, Mulyadi. -- To unsubscribe from this

Re: Stack at high memory locations

2008-05-05 Thread Mulyadi Santosa
Hi.. On Sun, May 4, 2008 at 6:48 PM, Rene Herman [EMAIL PROTECTED] wrote: It depends. There's obviously no way that the user stack can reside in kernelspace (well, sanely) so the question is, is there any way to have kernelspace limited to the last 512M instead of the last 1G as usual.

Re: Regarding unintialized variables

2008-05-05 Thread Mulyadi Santosa
Hi... On Sat, May 3, 2008 at 1:41 PM, debian developer [EMAIL PROTECTED] wrote: Hello, Consider the following code snippet... const char *type; switch (rfkill-type) { case RFKILL_TYPE_WLAN: type = wlan; break; case

Re: Stack at high memory locations

2008-05-05 Thread Rene Herman
On 05-05-08 11:38, Mulyadi Santosa wrote: On Sun, May 4, 2008 at 6:48 PM, Rene Herman [EMAIL PROTECTED] wrote: It depends. There's obviously no way that the user stack can reside in kernelspace (well, sanely) so the question is, is there any way to have kernelspace limited to the last 512M

Re: bad_page_fault oops

2008-05-05 Thread Roberto A. Foglietta
2008/4/18 Mulyadi Santosa [EMAIL PROTECTED]: Hi alll On Thu, Apr 17, 2008 at 4:45 PM, Gaurav Aggarwal [EMAIL PROTECTED] wrote: BUG: scheduling while atomic: snoopy/0x0001/1666 From this statement it looks that you are calling blocking/sleeping function inside the critical

Re: bad_page_fault oops

2008-05-05 Thread Roberto A. Foglietta
2008/5/5 Roberto A. Foglietta [EMAIL PROTECTED]: 2008/4/18 Mulyadi Santosa [EMAIL PROTECTED]: Hi alll On Thu, Apr 17, 2008 at 4:45 PM, Gaurav Aggarwal [EMAIL PROTECTED] wrote: BUG: scheduling while atomic: snoopy/0x0001/1666 From this statement it looks that

Re: Reply plss....

2008-05-05 Thread Erik Mouw
On Sat, May 03, 2008 at 11:44:05AM +0530, vasant.j wrote: I am trying to patch RTLinux kernel to linux-2.4.20-8.kindly tell me which RTlinux kernel patch to be used for patch for 2.4.20-8. I guess you will find the amount of people still using over 5 year old kernels is rather small. IOW: if

Re: bad_page_fault oops

2008-05-05 Thread Roberto A. Foglietta
2008/5/5 Roberto A. Foglietta [EMAIL PROTECTED]: 2008/5/5 Roberto A. Foglietta [EMAIL PROTECTED]: 2008/4/18 Mulyadi Santosa [EMAIL PROTECTED]: Hi alll On Thu, Apr 17, 2008 at 4:45 PM, Gaurav Aggarwal [EMAIL PROTECTED] wrote: BUG: scheduling while atomic:

Re: Stack at high memory locations

2008-05-05 Thread Peter Teoh
On Sun, May 4, 2008 at 6:35 PM, Anant Narayanan [EMAIL PROTECTED] wrote: Hi, While implementing a binary format loader for a foreign executable format, What foreign executable is that? As far as I can see, Linux kernel can handle the following types of foreign executable: ./fs/binfmt_elf.c:

looking for sample SPI driver for serial memory for 2.4 kernel

2008-05-05 Thread Robert P. J. Day
for a new project, i'm looking for sample code to implement an SPI driver to read from serial memory for the 2.4 kernel. as i read it, SPI was never *officially* supported under 2.4, but i've already found some samples out there i can rip bits out of. any pointers to docs/sample code

editing ELF file

2008-05-05 Thread tejas khatiwala
Hello, This is not exactly relevant to Linux kernel but I'm gonna ask any way. Is there any way I can modify a 64-bit ELF object file to make it look like 32-bit ELF object file and link it (using `ld`) with 32-bit ELF file? I tried libelf but was unsuccessful. I had this pretty link

Re: why kernel use git instead of CVS or SVN

2008-05-05 Thread Frank Thieme
On Monday 05 May 2008, Mulyadi Santosa wrote: [EMAIL PROTECTED] wrote: Linus explains it in his intro, IIRC. YouTube - Tech Talk: Linus Torvalds on git Sorry for my personal rambling, the Indonesian govt block YouTube gr You can find it on google video, too -- To

RE: EXPORT_SYMBOL Vs extern?

2008-05-05 Thread Anirban Sinha
EXPORT_SYMBOL macro creates a new kernel symbol entry (address of the symbol, symbol) based on the value you specify and puts it in a special section of the kernel image, in __ksymtab section. When modules are loaded dynamically, the loader resolves the symbols during run time by parsing the

Re: errors from booting from a custom built kernel

2008-05-05 Thread Dongxia Xu
Hi, Thanks for your reply. The strange thing I noticed is /etc/ssh directory contains many timezone info files, which are not present when I boot from installed RH 8, and all the correct sshd configurations are gone, when I run the custom built kernel; while sshd related config files are quite OK

Re: memory - slub vs slab fuzzing/testing/benchmarking

2008-05-05 Thread Mulyadi Santosa
Hi... On Fri, May 2, 2008 at 11:06 PM, Peter Teoh [EMAIL PROTECTED] wrote: a. any tools commonly used for testing memory - slub/slab etc? something like fsstress, or fsfuzz for filesystem. this may help me to increased the chances of getting more errors. AFAIK, I saw something like slab

Improving ide latency and file system performance

2008-05-05 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, Are there any kernel parameters could improve system performance in area of IDE access and file system? In our embedded system, We have disabled the read ahead for ide device (Compact Flash), mounted the CF device with noatime, sync option. At least disabling the read ahead has improved

Re: Stack at high memory locations

2008-05-05 Thread Peter Teoh
Thank you for pointing out my mistakes.it helped to improve my understanding..and I have learned something!!! On Tue, May 6, 2008 at 1:53 AM, Rene Herman [EMAIL PROTECTED] wrote: On 05-05-08 18:03, Peter Teoh wrote: Specifically, if u cat /proc/iomem: /proccat iomem

system halt due to alloc_pages

2008-05-05 Thread Wang Yu
Hi,all Now we have the following environment: serveral clients and one server. These clients are now writing large amount of data to the server asynchronously, but the server's memeory is limited. When the server calls alloc_pages and fails to allocate enough pages, the server will halt. I try

Re: Stack at high memory locations

2008-05-05 Thread Peter Teoh
On Sun, May 4, 2008 at 7:48 PM, Rene Herman [EMAIL PROTECTED] wrote: On 04-05-08 12:35, Anant Narayanan wrote: While implementing a binary format loader for a foreign executable format, we have found the need to setup the user stack starting at (virtual) address 0xE000 instead of the