if (!(sock = sock_alloc()))
{
printk(KERN_WARNING "socket: no more sockets\n");
i = -ENFILE; /* Not exactly a match, but its the
closest posix thing */
goto out;
}
sock->type = type;
if ((i = net_families[family]->create(sock, protocol)) < 0)
{
sock_release(sock);
goto out;
}
It simply calls net_family->create() which then sets its private struct proto_ops.
So I think owner field should be in the struct socket because it needs to be
accessible from net/socket.c:sock_create()/sock_release().
Dave, Alexey, do you guys still strongly believe that it's a hack ?
If yes what do I need to do to convince otherwise ? ;-)
Max
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/