Hello ,

What is the difference between those two functions?

I've looked through the source code and i found this:


 int sock_create(int family, int type, int protocol, struct socket **res)
{
         return __sock_create(current->nsproxy->net_ns, family, type,
protocol, res, 0);
}

int sock_create_kern(int family, int type, int protocol, struct socket **res)
{
         return __sock_create(&init_net, family, type, protocol, res, 1);
}

Any ideas?

thanks,
Daniel.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to