Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Mar 2004 21:49:30 +0000
From:      Kiss Tibor <grinder@pro.hu>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Strange problem with vnodes and sockets
Message-ID:  <20040307214929.GA45799@PSY.tvnetwork.hu>
In-Reply-To: <Pine.NEB.3.96L.1040307143827.2700H-100000@fledge.watson.org>
References:  <20040307175453.GA44645@PSY.tvnetwork.hu> <Pine.NEB.3.96L.1040307143827.2700H-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 07, 2004 at 02:40:50PM -0500, Robert Watson wrote:
>
> notion of "owner".  so_cred is a cached referenced to the process
> credential of the process that created the socket...
Yes, but i need the process p_pid.
>
> VSOCK vnodes are rendezvous points for UNIX domain socket communication,
> not the actual communication vehicles themselves.  Very few UNIX domain
> sockets are used in normal operation, but you might take a look at
> /var/run/log, and the file descriptors that referenced various sockets to
> the log subsystem.
So I was on the really wrong way. I want to find the owner (struct proc) for a
_TCP socket_. But now I'm really stucked. I dont have any idea how to do that.

Would you be so kind to show me the right way to find the owner proc struct
(the creator process; i want to know process p_pid) for a socket (defined in
/usr/src/sys/sys/socketvar.h)?

Thanks,
Kiss Tibor




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040307214929.GA45799>