Thread (2 messages) 2 messages, 2 authors, 2013-12-03

module vs main kernel

From: Mulyadi Santosa <hidden>
Date: 2013-12-03 07:31:27

On Tue, Dec 3, 2013 at 8:33 AM, Abu Rasheda [off-list ref] wrote:
I have my implementation of socket APIs,

I sock_unregister(AF_INET); & sock_register(&inet_family_ops), this replaces
kernel resident socket related calls with my socket related calls. My code
is loaded as kernel module.

My question, is Linux kernel able to call its own socket call more
efficiently (less overhead, fewer CPU cycles) than mine ? code is running on
Intel x86_64 arch.

Any pointer is appreciated.

IMHO, strictly from module vs core kernel code perspective, there is
no speed difference.

The reason is, once the kernel is loaded, it is the kernel itself. So
it is not separated into isolated segment or something like that. Yes
module is loaded into vmalloc-ed memory area, but that's it.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help