Re: Memory Concepts [+Newbie]

2009-05-04 Thread Mark Brown
Hi Marcos, A memory bank for RAM is just an individual addressable array on a memory board. The addressing of the bank is managed by the memory controller. Regards, -- Mark On May 4, 2009, at 7:44 AM, Marcos Roriz wrote: I'm reading Mel Gorman Understating the Linux Virtual Memory Manager

Re: question about SCSI commands

2009-03-24 Thread Mark Brown
Hi, If you want to see the SCSI mid-layer implementation check out: drivers/scsi/scsi.c If you are curious about the SCSI commands sent to a SCSI disk you can look at: drivers/scsi/sd.c SCSI tape: drivers/scsi/st.c SCSI optical media (CDs/DVDs) drivers/scsi/sr.c SCSI enclosures drivers/s

Re: limiting kernel memory

2009-01-07 Thread Mark Brown
Hemanth, You can set a hard memory limit with the mem= kernel parameter. see here: http://lxr.linux.no/linux+v2.6.28/Documentation/kernel-parameters.txt#L1224 -- Mark On Jan 8, 2009, at 12:34 AM, Hemanth Kumar wrote: Hi All, I am working on mips-64bit multi-core with 4GB RAM/8GB R

Re: symbol table....

2008-12-31 Thread Mark Brown
usb drivers in the kernel...am i right?if i do this means i think the USB port will workam i right?but my point is the port should not work...i am ready to recompile the kernel with USB support but port should not detect any device...how to do that? --- On Wed, 31/12/08, Mark Brown

Re: Freezing File Systems

2008-12-31 Thread Mark Brown
That is most likely due to the filesystem cache. Try running iostat and checking the block device statistics for the device you froze! -- Mark On Dec 31, 2008, at 9:39 AM, rishi agrawal wrote: I used a kernel module to freeze the file system using the function freeze_bdev but when i am try

Re: Freezing File Systems

2008-12-31 Thread Mark Brown
Rohit, that might cause unintentional consequences: e.g. causing the vfs to fail any write requests to a filesystem with an error. On the other hand, a filesystem freeze will block any I/Os from being written to disk and keep the filesystem state consistent. I think freeze_bdev() is the bes

Re: symbol table....

2008-12-31 Thread Mark Brown
...so what to do for that?sorry if i confussed you people...kindly help me...cause i novice --- On Wed, 31/12/08, Manish Katiyar wrote: From: Manish Katiyar Subject: Re: symbol table To: "Mark Brown" Cc: sharie...@yahoo.co.in, "Kernel newbies" > Date: Wednesday

Re: symbol table....

2008-12-30 Thread Mark Brown
your replyyes denis..i know to reconfigure the kernel with USB support...but i dont want to do that...i want to do it manuallyso that i am asking --- On Wed, 31/12/08, Denis Borisevich wrote: From: Denis Borisevich Subject: Re: symbol table To: sharie...@yahoo.co.in Cc: "

Re: symbol table....

2008-12-30 Thread Mark Brown
Hi, You are missing USB support in your configuration. Please check your configuration again and make sure you enable all of the modules you need! # CONFIG_USB_SUPPORT is not set -- Mark

Re: symbol table....

2008-12-28 Thread Mark Brown
Can you share your .config file to the mailing list? It is located in the kernel base directory e.g. /usr/src/linux-2.6.26 (or wherever the kernel you built is located) -- Mark On Dec 28, 2008, at 10:55 PM, niamathullah sharief wrote: yes you are righti compiled my kernel with "kernel

Re: symbol table....

2008-12-27 Thread Mark Brown
host drivers are showing errorsThats why i planned to check the symbol table whether all the symbols from that "usbcore" module are installed are notam i correct...if not please suggest me how to resolve this problem.. --- On Sun, 28/12/08, Mark Brown wrote: From: Mark

Re: symbol table....

2008-12-27 Thread Mark Brown
The command is: # nm -- Mark On Dec 27, 2008, at 3:47 PM, niamathullah sharief wrote: Hello, Can anyone tell me how to read and view the symbols in the symbol table...and how to understand that... From Chandigarh to Chennai - find friends all over India. Click here.

Re: filter drivers in Linux

2008-12-24 Thread Mark Brown
You can stack a driver on top of another to enhance functionality. For an example check the Linux RAID and LVM implementations. In general you don't need filter drivers because you can modify the Linux kernel to add functionality, where in Windows you generally cannot. Regards, -- Mark On

Re: boot Linux from Linux

2008-12-02 Thread Mark Brown
Bizhan, Yes it is do-able you can actually use the zImage header to bootstrap the kernel. You can modify linux/arch//boot/compressed/ head.S and add the boot loader logic there. Then you need to place your zImage in the location your platform normally loads the boot loader. You should real

Re: some queries on kernel

2008-08-25 Thread Mark Brown
Hi Shankar: a) The memory map is soc/board specific, you should look at the arch/ arm/mach- b) Start with Documentation/arm/Booting Regards, -- Mark On Aug 25, 2008, at 11:44 AM, Umashankar V.K. wrote: Hi, a) Which is the kernel file which contains the RAM address map ? b) How do I know w

Re: Getting the list of the file systems which are mounted.

2008-08-04 Thread Mark Brown
That is true [ I missed that tiny detail ;-) ] in either case you would need create a custom kernel with the function exported with EXPORT_SYMBOL(). Why do you need to obtain a list of available filesystems from a driver? Shouldn't you handle this in an application instead? Best Regards,

Re: Getting the list of the file systems which are mounted.

2008-08-03 Thread Mark Brown
If you are using kernel 2.6.24 or below you can specify the prototype: extern int get_filesystem_list(char *); It does not look like this function was intended for general use, so be careful. Regards, -- Mark On Aug 3, 2008, at 1:04 PM, Rene Herman wrote: On 03-08-08 17:44, Prasad Joshi w

Re: Multiple data streams

2008-07-28 Thread Mark Brown
The ext filesystem supports extended attributes, which you can use to store a pointer to another file (which could be your other file stream if you like). The application can read the extended attribute which contains the information about where the fork is located and process that file if

Re: Newbie: kernel search techniques ??

2008-07-02 Thread Mark Brown
I am not sure if this is what you are looking for but I use LXR http://lxr.linux.no/linux You can search for the symbol and who uses it. Regards, -- Mark On Jul 2, 2008, at 9:21 AM, William Case wrote: Hi; I am a kernel newbie who is about to embark on "Kernel Hackers' Guide to git". Up to

Re: getting panic during kmalloc

2008-07-02 Thread Mark Brown
Could you send us the code snippet where you are allocating these buffers? -- Mark On Jul 2, 2008, at 3:28 AM, gagan grover wrote: Hi I have a requirement of creating 1M buffers of 24 bytes. So, my driver is calling kmalloc in loop but it is giving following panic after some iterations. Sy

Re: where to put defines

2008-06-26 Thread Mark Brown
Place the ioctl defines in a header and keep one copy in the kernel include directory and one copy in the /usr/include directory or with your application code. -- Mark On Jun 26, 2008, at 7:59 AM, Belisko Marek wrote: Hi, where should I put defines for IOCTL command to be visible in use

Re: about the address of the variable

2008-06-22 Thread Mark Brown
Hi Steven, The address 0xbfcce590 is a virtual address (in the stack) which is assigned to you by the loader. -- Mark On Jun 22, 2008, at 10:43 PM, Steven Zhou wrote: Hi guys, I'm troubling with a problem about the logical address, linear address and the physical address in programs.