Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-13 Thread Sergio Andrés Gómez del Real
Sure, I forgot what you said; precisely the mechanism allows to use lots of linear space without necessarily allocating physical memory (demand paging and the like). What about the rest of what I said? Is it correct or is there something wrong about it? Thanks. On 5/13/13, valdis.kletni...@vt.edu

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-13 Thread Valdis . Kletnieks
On Mon, 13 May 2013 14:11:22 -0500, Sergio Andr said: > 2. When user applications allocates memory, the kernel must allocate > virtual memory and physical memory, right? Wrong. If userspace allocates (say) 15M of memory, the kernel has every right to overcommit and not actually allocate either ph

user space device drivers

2013-05-13 Thread Gergely Buday
Hi there, I learned, e.g. from here that user space device drivers are indeed possible: http://www.makelinux.net/ldd3/chp-2-sect-9 Are there serious user space drivers in Linux? Could you name a few? Or, is this just for hacking a driver for your home-made hardware? - Gergely

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-13 Thread Sergio Andrés Gómez del Real
I've got some questions regarding this linear to physical address mapping on x86 architecture; I'm not sure I've grassped the whole thing. Before asking, I'd like to be sure I understand some basic things about this: 1. Addresses within the kernel are linked to start at 0xC000 so, that the ker

Re: how do i read a block

2013-05-13 Thread Matthias Brugger
El 13/05/2013 10:07, "shampavman" va escriure: > > Hi all, > > Supposing i create a file of size 10K, it will occupy 2 blocks (4K each). > Now if i want to read only 1 block from it how can i do it? > > read(fd, buf, 4096) ; > would this mean i would read the first block and all its contents? You

bio size is always 4096

2013-05-13 Thread neha naik
Hi, I was under the impression that when the bio comes to a block device driver its size is variable. But, after writing a block device driver i realized that such is not the case and it always is 4096. Does this mean that by default if i don't use any merge function the bio will always have siz

Re: how do i read a block

2013-05-13 Thread Valdis . Kletnieks
On Mon, 13 May 2013 13:35:54 +0530, shampavman said: > Hi all, > > Supposing i create a file of size 10K, it will occupy 2 blocks (4K each). > Now if i want to read only 1 block from it how can i do it? > > read(fd, buf, 4096) ; > would this mean i would read the first block and all its contents?

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-13 Thread Prabhu nath
Is this is a question that popped up to your mind arbitrarily or do you have a specific system at hand which triggered you to ponder over the design of the kernel ? I felt the answer to this question is not straight forward but is multi faceted and to be discussed in a specific context. On Sat, M

Re: Initial git repository - kernel tree

2013-05-13 Thread Matthias Kaehlcke
Hi Kevin, El Mon, May 13, 2013 at 10:51:33AM +0300 Kevin Wilson ha dit: > I have a question about git patches. > When I run > git log include/linux/skbuff.h > and page down till the end, I reach > 1da177e Linux-2.6.12-rc2 > > (I do it on the net-next tree.) > > git show 1da177e gives: > Author:

Re: Initial git repository - kernel tree

2013-05-13 Thread Alexandru Juncu
On 13 May 2013 10:51, Kevin Wilson wrote: > Hello, > I have a question about git patches. > When I run > git log include/linux/skbuff.h > and page down till the end, I reach > 1da177e Linux-2.6.12-rc2 > > (I do it on the net-next tree.) > > git show 1da177e gives: > Author: Linus Torvalds > Date:

how do i read a block

2013-05-13 Thread shampavman
Hi all, Supposing i create a file of size 10K, it will occupy 2 blocks (4K each). Now if i want to read only 1 block from it how can i do it? read(fd, buf, 4096) ; would this mean i would read the first block and all its contents? Thanks ___ Kernelne

Re: Initial git repository - kernel tree

2013-05-13 Thread Daniel Baluta
On Mon, May 13, 2013 at 10:51 AM, Kevin Wilson wrote: > Hello, > I have a question about git patches. > When I run > git log include/linux/skbuff.h > and page down till the end, I reach > 1da177e Linux-2.6.12-rc2 > > (I do it on the net-next tree.) > > git show 1da177e gives: > Author: Linus Torva

Initial git repository - kernel tree

2013-05-13 Thread Kevin Wilson
Hello, I have a question about git patches. When I run git log include/linux/skbuff.h and page down till the end, I reach 1da177e Linux-2.6.12-rc2 (I do it on the net-next tree.) git show 1da177e gives: Author: Linus Torvalds Date: Sat Apr 16 15:20:36 2005 -0700 Linux-2.6.12-rc2 Init