OK. Although, where is sockfs?
> For local-domain socket you get _two_ kinds of inodes, both with
> S_IFSOCK in ->i_mode: one on the filesystem (acting like an meeting
> place) and another - bearing the actual socket and used for all IO.
>
> In other words, the only kind you can get from mknod(2) never uses
> ->i_socket. It's used only by bind() and connect() - and only as
> a place in namespace. The only thing we ever look at is ownership
> and permissions - they determine who can bind()/connect() here.
>
> So ->u.generic_ip is safe.
Great! That table is toast! All I need is a spinlock-protected
incrementing counter :-)
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
-
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/