sock_create vs socket_create_kern

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux