f



sock_register only available in kernel space or also in user space ? If only kernel space is there something equivalent ?

Hello,

is sock_register only available in kernel space or can it be also used in
user space to register a new socket ?
If only kernel space, is there a equivalent function for doing this ? Or
some kind of wrapper, so a user mode application can register a new socket
via kernel ?

Regards,

         Martin


0
Maurer
11/29/2004 1:09:02 PM
comp.linux.development.system 5436 articles. 0 followers. zixenus (12) is leader. Post Follow

1 Replies
653 Views

Similar Articles

[PageSpeed] 59

"Maurer Martin (CN MUC)" wrote:
> 
> Hello,
> 
> is sock_register only available in kernel space or can it be also used in
> user space

It can be used only in kernel mode.

> to register a new socket ?

That is not what it does according to comments in the code:
http://lxr.linux.no/source/net/socket.c?v=2.6.8.1#L1984

> If only kernel space, is there a equivalent function for doing this ? Or
> some kind of wrapper, so a user mode application can register a new socket
> via kernel ?

What are you trying to do? You can create a new socket with
the socket system call, and you can then use bind and/or
connect with that socket.

-- 
Kasper Dupont
0
Kasper
11/29/2004 2:11:41 PM
Reply: