general_protection result to die

2013-02-26 Thread horseriver
hi; does general_protection trap necessarily result to die ? when executing this instruction : mov(%eax),%gs ,$ip turns to be general_protection. then it comes to debug() I have no clue for what has happend leads kernel to go here . it denotes what? Are there some

Re: relocatable modules' symbols

2013-02-24 Thread horseriver
On Sun, Feb 24, 2013 at 04:00:37PM +0700, Mulyadi Santosa wrote: On Sat, Feb 23, 2013 at 6:45 AM, horseriver horseriv...@gmail.com wrote: hi: I have built vmlinux at the top dir of kernel source ,then I use objdump to look into its section information.I find the statup_32 which

Re: how to receive msgs in a channel?

2013-02-24 Thread horseriver
:02 AM, horseriver horseriv...@gmail.com wrote: I can see a list of users in that room ,but receive none msgs for a long time . how to send message to this room ?not just to one member. thanks! ___ Kernelnewbies mailing list Kernelnewbies

relocatable modules' symbols

2013-02-23 Thread horseriver
hi: I have built vmlinux at the top dir of kernel source ,then I use objdump to look into its section information.I find the statup_32 which is the start routine of kernel , locats at 0xc010. I know the 0x10 is the defined address for locating protect-mode code .But which I can

setup code

2013-02-22 Thread horseriver
hi I am confused on booting from grub's rescue mode . As we know ,before the kernel start ,the setup code, which is from setup.S ,will be executed at front. If boot from rescue mode , will grub also load setup code and execute it ? or grub execute its own code doing the same work as

gdtr value

2013-02-18 Thread horseriver
hi:) The gdtr reg saves the base address of gdt , whether is this address a linear address or phisical address ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

exception before start_idt

2013-02-14 Thread horseriver
hi:) i am debuging my kernel . Before the idt_setup of protect-mode , Is it normal that one page_fault exception occures? As I step into this instruction : lss stack_start,%esp , vm fire an page_fault exception, But at the intr vector check step, as the intr-table has not been

Re: MAX limit of file descriptor

2013-02-10 Thread horseriver
thanks! Actually , my question comes from network performance ,I want to know ,in per second ,the maximum of tcp connections that can be dealed with by my server. How can I do the test and calculate the connection number , Is it possible that my server can deal with 10k tcp

MAX limit of file descriptor

2013-02-09 Thread horseriver
hi:) In one process ,what is the max number of opening file descriptor ? Can it be set to infinite ? In network programing ,what is the essential for the maximum of connections dealed per second thanks! ___ Kernelnewbies mailing list

hd controller

2013-02-07 Thread horseriver
hi:) I am curious about how hd controller work . When user am reaing/writing hd ,it was implemented by sending command to hd controller's special port.Then ,how does the controller know a new command has received? In this procedure , what work does the hd driver do ? thanks!

Re: hard disk dirver

2013-02-06 Thread horseriver
On Wed, Feb 06, 2013 at 02:35:47AM -0500, valdis.kletni...@vt.edu wrote: On Wed, 06 Feb 2013 05:37:41 +0800, horseriver said: After grub load kernel and initrd , it get around root filesystem mounting , but failed with no finding root device ,from which kernel and initrd have been

Re: hard disk dirver

2013-02-06 Thread horseriver
hi:) I have a newbie question about hard ware. At booting stage,kernel need to detect the hard device before mount it, does this work need pci's surport? At loading stage ,boot loader need to move binaries from hard disk partition to ram,does this work need pci's surport?

When does the /dev/sda1 node comes into being ?

2013-02-05 Thread horseriver
hi:) During booting period .every device will have a node at /dev/ folder. what is the detail of ths procedure? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: hard disk dirver

2013-02-05 Thread horseriver
Thanks for your reply! After grub load kernel and initrd , it get around root filesystem mounting , but failed with no finding root device ,from which kernel and initrd have been located . ls /dev/ ; there is no disk device node . Why?

print log

2013-02-04 Thread horseriver
hi:) When kernel booting,there are a serial log printed on the screen, like this: Initial network ... can I redirect these logs into a logfile?How can I do ? Thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: print log

2013-02-04 Thread horseriver
Thanks! If I booting from bochs ,can I redirect these logs to the host OS? 4 lut 2013 09:25, horseriver horseriv...@gmail.com napisał(a): hi:) When kernel booting,there are a serial log printed on the screen, like this: Initial network ... can I redirect these logs

Re: open image file

2013-02-04 Thread horseriver
hi:) I have a image file ,after I input this command: ** sh losetup /dev/loop0 xx.img sh mount -t tmpfs /dev/loop0 /mnt ** I find no content under /mnt ,But this image file contains a bootloader. What is the reason ? How can I check out the file tree structure of

Re: open image file

2013-02-04 Thread horseriver
hi: It is not a cpio archive , so that command can not work . its file system type is tmpfs. thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

open image file

2013-02-03 Thread horseriver
hi: Is there mothod to look into a image file ? How can I know its filesystem? I have mounted my fd0 to /mnt with -t tmpfs ,but I find nothing under /mnt.How can I touch the files in image? thanks! ___ Kernelnewbies mailing list

newbie's question

2013-02-03 Thread horseriver
hi:) I use fdisk to add a new partion on a image file. I find the start of partion 1 is alwayes set to 63 by default. That means partion 1 start at 63*512=32256 byte. Here is my question: 1. The region from 512th bytes to 32256th bytes will do what ? Why partion

Boot from hard disk?

2013-02-01 Thread horseriver
hi:) When boot from hard disk , is GURB at the MBR a must ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to make a bootable hard disk image?

2013-01-31 Thread horseriver
Thanks! If I just only want to make a bootable hard disk image ,how can I do? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

How to make a bootable hard disk image?

2013-01-30 Thread horseriver
hi:) I want to boot kernel from hard disk image ,because i am using a virtual machine . How to make this bootable image ? After I make it ,how do I put kernel Image into this image? thanks! ___ Kernelnewbies mailing list

Re: GRUB question

2013-01-28 Thread horseriver
On Mon, Jan 28, 2013 at 12:05:35PM +0530, Mandeep Sandhu wrote: On Mon, Jan 28, 2013 at 2:07 AM, horseriver horseriv...@gmail.com wrote: hi:) Is /boot/initrd.img a root filesystem? what is the filetype of it? Yes, it's a rootfs with minimal stuff needed for booting a workable system

Re: GRUB question

2013-01-28 Thread horseriver
On Mon, Jan 28, 2013 at 03:07:13PM +0700, Mulyadi Santosa wrote: On Mon, Jan 28, 2013 at 5:10 AM, horseriver horseriv...@gmail.com wrote: Does this /boot/initrd.img file come out when building kernel ? how to build it? you use your distro supplied /sbin/mkinitrd or /sbin/mkinitramfs

method to get backtrace of kernel function?

2013-01-28 Thread horseriver
hi: Is there method for getting bt of a kernel functions? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: GRUB question

2013-01-28 Thread horseriver
Of course, an initrd on floppy is kind of silly, because you still need to find someplace else to fit the actual kernel - which hasn't fit on a floppy for quite some time. Do we must need initrd.img to boot system ? Does this /boot/initrd.img file come out when building kernel

use of EXPORT_SYMBOL()

2013-01-28 Thread horseriver
hi:) In kernel code ,what is the use of EXPORT_SYMBOL()? Does it export a function to user application , so this function can be used in user application ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

GRUB question

2013-01-27 Thread horseriver
hi:) Is /boot/initrd.img a root filesystem? what is the filetype of it? Can I put initrd.img in a floppy to boot system ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

How to know the default mail delivery agent ?

2013-01-25 Thread horseriver
hi: I have to know the default mail delivery agent on my system to configure mail client. Is there mothod? How mail delivery agent work for receiving mails? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

question on debug

2013-01-22 Thread horseriver
hi: I am debuging kernel with gdb , when it comes into a page_fault exception ,how to get to know how does that address come out ? It is the same to ask : which code is using that address , causing the page_fault exception? thanks! ___

Re: what is the difference between the two command?

2013-01-21 Thread horseriver
On Sun, Jan 20, 2013 at 09:07:15AM -0800, Ian Lance Taylor wrote: On Sat, Jan 19, 2013 at 1:30 PM, horseriver horseriv...@gmail.com wrote: On Sat, Jan 19, 2013 at 09:47:53PM -0800, Ian Lance Taylor wrote: On Fri, Jan 18, 2013 at 10:19 PM, horseriver horseriv...@gmail.com wrote: hi

Re: why is this result ?

2013-01-19 Thread horseriver
On Sat, Jan 19, 2013 at 09:15:23AM +0100, Jędrzej Dudkiewicz wrote: Because it's not possible to have an object with nonzero size. The address of every object must be unique, so they have to be separated by one byte anyway. thanks! Here I do not define a object of type A ,just do

Where this come out?

2013-01-19 Thread horseriver
hi: I am linking a .so from one .o file with my specified linker script. In this linker script file , I do not use SIZEOF_HEADERS,but ld still report this error : Not enough room for program headers, try linking with -N I really can not understand . Any advice

Re: Where this come out?

2013-01-19 Thread horseriver
On Sat, Jan 19, 2013 at 10:53:26PM +0700, Mulyadi Santosa wrote: On Sat, Jan 19, 2013 at 12:19 PM, horseriver horseriv...@gmail.com wrote: hi: I am linking a .so from one .o file with my specified linker script. In this linker script file , I do not use SIZEOF_HEADERS,but ld still

Re: what is the difference between the two command?

2013-01-19 Thread horseriver
On Sat, Jan 19, 2013 at 09:47:53PM -0800, Ian Lance Taylor wrote: On Fri, Jan 18, 2013 at 10:19 PM, horseriver horseriv...@gmail.com wrote: hi: Here are two command for producting one .so file : 1. gcc -nostdlib -Wl,-T,vsyscall.lds vsyscall-int80.o -o vsyscall-int80.so

Re: How to wake_up the wait_queue of a socket?

2013-01-18 Thread horseriver
On Fri, Jan 18, 2013 at 10:18:19AM +0800, Peter Teoh wrote: essentially, when the packet arrive, it will be assigned to the correct process based on IP address + port matching, and then the corresponding process's blocked scheduling status will be changed to continue execution, so that when

Re: working of fork and exec

2013-01-18 Thread horseriver
In my opinion , fork and exec is based on independent task environment for per process , which is corresponding to task_struct . ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

how to get outsated mail ?

2013-01-18 Thread horseriver
hi: If I subscribed a mail list at date x , how can I get those mail dated before x ? can I request maillist server to send those mail to my mail address ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: how to get outsated mail ?

2013-01-18 Thread horseriver
On Fri, Jan 18, 2013 at 10:26:12PM -0800, Dave Hylands wrote: Hi, On Fri, Jan 18, 2013 at 10:53 AM, horseriver horseriv...@gmail.com wrote: hi: If I subscribed a mail list at date x , how can I get those mail dated before x ? can I request maillist server to send those mail

socket state after accept() return

2013-01-18 Thread horseriver
hi: For one socket , which has been returned by accept() call , does its sk_state is assuredly already TCPF_ESTABLISHED ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

what is the function of do_softirq() ?

2013-01-16 Thread horseriver
hi: what is the function of do_softirq()? It is called by ksoftirqd() ,which is setup by : kernel_thread(ksoftirqd, hcpu, CLONE_KERNEL) ; thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Does driver wake_up a wait_queue on a socket file?

2013-01-16 Thread horseriver
hi: When an net IRQ on a socket reached, does the driver wake_up socket's wait_queue at once ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

what is the function of tcp_prequeue ?

2013-01-16 Thread horseriver
hi: what is the function of tcp_prequeue ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to wake_up the wait_queue of a socket?

2013-01-15 Thread horseriver
On Tue, Jan 15, 2013 at 12:25:10PM -0500, valdis.kletni...@vt.edu wrote: On Mon, 14 Jan 2013 17:50:03 +0800, horseriver said: When one datagram has reached , How to wake_up the wait_queue of that socket ? Please clarify your question - I'm not sure which of the following you mean

Re: what does this do ?

2013-01-14 Thread horseriver
On Sun, Jan 13, 2013 at 09:27:45PM -0800, Dave Hylands wrote: Hi, On Sun, Jan 13, 2013 at 11:29 AM, horseriver horseriv...@gmail.com wrote: hi: In kernel code . some function is defined by __attribute__((__section__(.initcall level .init))) what does this do ? It puts

Re: what does this do ?

2013-01-14 Thread horseriver
On Mon, Jan 14, 2013 at 07:20:46AM -0800, Ramesh.P wrote: Hi, On Sun, Jan 13, 2013 at 8:50 PM, horseriver horseriv...@gmail.com wrote: On Sun, Jan 13, 2013 at 09:27:45PM -0800, Dave Hylands wrote: Hi, On Sun, Jan 13, 2013 at 11:29 AM, horseriver horseriv...@gmail.com wrote

Re: what does this do ?

2013-01-14 Thread horseriver
On Mon, Jan 14, 2013 at 02:44:11PM +, Anuz Pratap Singh Tomar wrote: On Mon, Jan 14, 2013 at 4:50 AM, horseriver horseriv...@gmail.com wrote: On Sun, Jan 13, 2013 at 09:27:45PM -0800, Dave Hylands wrote: Hi, On Sun, Jan 13, 2013 at 11:29 AM, horseriver horseriv...@gmail.com

Re: where is the build rule for kernel's subdirs?

2013-01-14 Thread horseriver
On Mon, Jan 14, 2013 at 08:32:57AM -0800, Randy Dunlap wrote: On 01/13/13 20:33, horseriver wrote: hi: How does kbuild build objects for subdirs of kernel source ? It goes into subdirs recursively. From top-level Makefile: # Objects we will link into vmlinux / subdirs we

Re: build rules for subdirs in kernel source

2013-01-14 Thread horseriver
On Mon, Jan 14, 2013 at 10:44:28PM +0530, Vivek Gautam wrote: Hi, On Mon, Jan 14, 2013 at 10:36 AM, horseriver horseriv...@gmail.com wrote: hi: How to build targets for every subdirs of kernel ? Is it the Makefile you want to look for. Make is the same linux utility to build

How to wake_up the wait_queue of a socket?

2013-01-14 Thread horseriver
hi: When one datagram has reached , How to wake_up the wait_queue of that socket ? Thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

what mail list can discuss linux network details?

2013-01-13 Thread horseriver
hi: Is there some mail list for discussion of network details? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

what does this do ?

2013-01-13 Thread horseriver
hi: In kernel code . some function is defined by __attribute__((__section__(.initcall level .init))) what does this do ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: what does this do ?

2013-01-13 Thread horseriver
On Sun, Jan 13, 2013 at 09:27:45PM -0800, Dave Hylands wrote: Hi, On Sun, Jan 13, 2013 at 11:29 AM, horseriver horseriv...@gmail.com wrote: hi: In kernel code . some function is defined by __attribute__((__section__(.initcall level .init))) what does this do ? It puts

Re: compile linux kernel 2.6.0 failed

2013-01-13 Thread horseriver
On Wed, Jan 02, 2013 at 08:57:04AM -0800, Ian Lance Taylor wrote: On Wed, Jan 2, 2013 at 1:16 AM, horseriver horseriv...@gmail.com wrote: I am compiling 2.6.0 kernel with gcc 4.4.5 and link with ld 2.20 version. when linking .so , output this error : /usr/bin/ld: arch/i386

for a socket file , what does file-f_op-poll() do ?

2013-01-11 Thread horseriver
hi: for a socket file point , what will this function do ? file-f_op-poll(); ///poll is declared in the file-operations struct . but I do not find this function's definition . Is there some advice? thanks! ___ Kernelnewbies mailing

where is the build rules for drivers/* ?

2013-01-10 Thread horseriver
hi: when building kernel , kbuild will work into every subdirs . for example: drivers/acpi directory ,there is a makefile , which construct all object files ,but where is the building rules for these file? how kbuild build them out ? Is script/makefile.build doing this work?

Re: internel implemention of file operation

2013-01-10 Thread horseriver
hi: these two wayes of operating one file : 1.use open/write interface call . 2.mmap this file into memory , then access this memory area and do r/w . what is the essential difference between this teo wayes? thanks! ___ Kernelnewbies

Re: internel implemention of file operation

2013-01-10 Thread horseriver
? Thanks! -Rajat On Fri, Jan 11, 2013 at 2:44 AM, horseriver horseriv...@gmail.com wrote: hi: these two wayes of operating one file : 1.use open/write interface call . 2.mmap this file into memory , then access this memory area and do r/w . what is the essential

Re: what is the difference between poll and epoll ?

2013-01-10 Thread horseriver
%E5%8C%BA%E5%88%AB/ and comes with a pictorial diagram as u have requested. Thanks! Very Great! On Tue, Jan 8, 2013 at 4:35 AM, horseriver horseriv...@gmail.com wrote: hi: I know epoll is event triger model ,but I do not know internel surpport for it . is there some

Re: /usr/ld Not enough room for program headers

2013-01-09 Thread horseriver
On Wed, Jan 09, 2013 at 08:51:36PM +0800, Peter Teoh wrote: On Wed, Jan 9, 2013 at 6:36 AM, horseriver horseriv...@gmail.com wrote: On Wed, Jan 09, 2013 at 01:28:12PM +0800, Peter Teoh wrote: On Sun, Jan 6, 2013 at 11:17 AM, horseriver horseriv...@gmail.com wrote: VSYSCALL_BASE

what is the difference between poll and epoll ?

2013-01-07 Thread horseriver
hi: I know epoll is event triger model ,but I do not know internel surpport for it . is there some illustration for epoll's frame or internel implementation? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: /usr/ld Not enough room for program headers

2013-01-06 Thread horseriver
On Fri, Jan 04, 2013 at 11:34:24AM +0400, Игорь Пашев wrote: 2013/1/4 horseriver horseriv...@gmail.com Not enough room for program headers Try to search the Web for this. E. g.: http://lists.gnu.org/archive/html/bug-gnu-utils/2002-08/msg00176.html thanks! in my compile option. I have

Re: what is SYSCALL in arch/i386/kernel/Makefile

2013-01-06 Thread horseriver
On Sun, Jan 06, 2013 at 01:01:47PM +0100, richard -rw- weinberger wrote: On Sat, Jan 5, 2013 at 6:12 PM, horseriver horseriv...@gmail.com wrote: hi: In arch/i386/kernel/Makefile , there is a SYSCALL , what is it ? Nobody can help you without providing more information. Current kernels

what is SYSCALL in arch/i386/kernel/Makefile

2013-01-05 Thread horseriver
hi: In arch/i386/kernel/Makefile , there is a SYSCALL , what is it ? thank! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

question about compilation in directory linux-2.6.0\arch\i386\kernel

2013-01-04 Thread horseriver
hi: in the makefile ,I can not find link options for vsyscall-int80.so, I want to add a option for ld how can I do this ? thank! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

what is SYSCALL in kernel makefile

2013-01-04 Thread horseriver
hi: In arch/i386/kernel/Mkaefile : quiet_cmd_syscall = SYSCALL $@ what does this mean ? I can not fins SYSCALL's definition any advice is appreciate! thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: internel implemention of file operation

2013-01-03 Thread horseriver
On Thu, Jan 03, 2013 at 01:16:06PM +0530, Rajat Sharma wrote: will it be maped with vm_area struct ? Yes if it is accessed via mmap system call. you know that , in the struct vm_area_struct,there is a struct vm_operations_struct * vm_ops; in this vm_operations_struct , there are open/close

compile linux kernel 2.6.0 failed

2013-01-02 Thread horseriver
hi: I am compiling 2.6.0 kernel with gcc 4.4.5 and link with ld 2.20 version. my host os is 2.6.32 kernel . when linking .so , output this error : /usr/bin/ld: arch/i386/kernel/vsyscall-int80.so: Not enough room for program headers, try linking with -N does gcc generate the

internel implemention of file operation

2013-01-02 Thread horseriver
hi: when one file is opened , does its data be put into memory ? and all operation on this file will be implemented by operation on its mapping memory area ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: internel implemention of file operation

2013-01-02 Thread horseriver
On Thu, Jan 03, 2013 at 12:48:01PM +0530, Rajat Sharma wrote: Never heard of page-cache? will it be maped with vm_area struct ? what is the relation between page-cache and file operation? thanks! On Thu, Jan 3, 2013 at 12:29 PM, horseriver horseriv...@gmail.com wrote: hi: when