Skip to contentSkip to conversation

Maximum packet size in kernel

DISCUSSION cranium2003 3 participants 3 messages Dec 2, 2004 – Dec 5, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

hello,
I want to know how much maximum packet size is assigned by alloc_skb in kernel? and is there any extra space remains in packet allocated memory? Does it dependent on CPU cache?
regards,
cranium.

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com

#1 lore raw

global memory access

Hi,

I was wondering how a user-level program can share a writable memory buffer with the kernel. The memory can either belongs to the kernel space or the user space, but both kernel module and user program should be able to access(read, write) it.

Any hint? Many thanks,

Lan

#2 lore raw

Re: global memory access

Uttered Lan Xue <[email protected]>, spake thus:

Quoted 4 lines

I was wondering how a user-level program can share a writable memory buffer with the kernel. The memory can either belongs to the kernel space or the user space, but both kernel module and user program should be able to access(read, write) it.

$ man 2 mmap

Cheers!