regarding kernel preemption

2007-03-29 Thread Rick Brown
Hi list, I had posted this on kernelnewbies, but did not get much response, and hence trying here. When we preempt_enable() / preempt_disable(), is the kernel preemption enabled or disabled for ALL the processors or just the local processor? TIA, Rick - To unsubscribe from this list: send the

Makefile for module with multiple directories

2007-03-06 Thread Rick Brown
Hi, I want to compile a kernel module whose source is organized in a directory hierarchy. For eg: driver |---A ||---1.c ||---2.c | |---B |---3.c |---4.c I want to compile a single module (.ko) out of these source files. Can you please suggest me a Makefile? Than

kernel porting query

2007-02-15 Thread Rick Brown
Hi, I have a very basic query regarding kernel porting on different boards. I understand that even if two boards have the very same processor core (say MIPS 4KE), we need to port linux for them seperately. I have heard things like it is because of certain "board level differences", I need to prov

Determining amout a physical RAM my kernel needs?

2007-02-07 Thread Rick Brown
Hi list, I have a kernel image about 600 KB in size that I intend to program to flash memory on my target board (hence size required in flash=600 KB). 1) But how do I determine the size of the RAM required to run that image? (Since I believe the image will be uncompressed in RAM, plus will also

Re: [DISCUSS] memory allocation method

2007-01-19 Thread Rick Brown
On 1/15/07, Raz Ben-Jehuda(caro) <[EMAIL PROTECTED]> wrote: I have a process who allocates as much as possible of RAM in 4 G ram 32bit machine. This buffer is never released. Questions: 1. Is it better allocates with many 1MB buffers or allocate it in with one a big valloc ? ONe BIG vmalloc

EXPORT_SYMBOL not mandatory in 2.4.x?

2007-01-17 Thread Rick Brown
Hi, 1) I'm using two 2.4 based kernel modules. The first module defines a symbol but does not EXPORT_SYSMBOL() it. Would my second module be able to use that symbol? In 2.4? In 2.6? 2) Also, in 2.4, is it OK if I start using my device memory before request_mem_region()? Thanks, Rick - To unsub