From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 7 12:41:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DF3016A4D0 for ; Sun, 7 Mar 2004 12:41:45 -0800 (PST) Received: from mail.tvnetwork.hu (zion.tvnetwork.hu [80.95.64.67]) by mx1.FreeBSD.org (Postfix) with SMTP id 4432543D2F for ; Sun, 7 Mar 2004 12:41:44 -0800 (PST) (envelope-from grinder@ip-184-91.tvnetwork.hu) Received: (qmail 17447 invoked by uid 64014); 7 Mar 2004 20:41:43 -0000 Received: from grinder@ip-184-91.tvnetwork.hu by zion by uid 64011 with qmail-scanner-1.20rc3 (clamuko: 0.60. spamassassin: 2.60. Clear:RC:1:. Processed in 0.020366 secs); 07 Mar 2004 20:41:43 -0000 Received: from unknown (HELO ip-184-91.tvnetwork.hu) (80.95.91.184) by zion.tvnetwork.hu with SMTP; 7 Mar 2004 20:41:43 -0000 Received: by ip-184-91.tvnetwork.hu (Postfix, from userid 1001) id 988C53FDE0; Sun, 7 Mar 2004 21:49:30 +0000 (GMT) Date: Sun, 7 Mar 2004 21:49:30 +0000 From: Kiss Tibor To: Robert Watson Message-ID: <20040307214929.GA45799@PSY.tvnetwork.hu> Mail-Followup-To: Robert Watson , freebsd-net@freebsd.org, freebsd-hackers@freebsd.org References: <20040307175453.GA44645@PSY.tvnetwork.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-net@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: Strange problem with vnodes and sockets X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2004 20:41:45 -0000 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