From owner-freebsd-hackers Fri Jan 19 10:21:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (unknown [169.237.8.127]) by hub.freebsd.org (Postfix) with ESMTP id 4CE2137B400 for ; Fri, 19 Jan 2001 10:21:20 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id f0JIZqW01159; Fri, 19 Jan 2001 10:36:00 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200101191836.f0JIZqW01159@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Amos Blackman Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel resource tracking/controlling In-reply-to: Your message of "Fri, 19 Jan 2001 03:36:18 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 19 Jan 2001 10:35:52 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The short answer to your question is "no". You might want to talk to the TrustedBSD people, though, since the access control mechanisms are effectively the authentication side of resource control, and the gates that they are implementing could become part of a wider "resource" management infrastructure. Note that the word "resource" is heavily overloaded in the kernel's context, and you might want to try looking for a more general term (if such a thing is possible). > I've been digging through a lot of unfamiliar code trying to figure this > out on my own, and have decided it would be more efficient to see if > there's an expert around. :) > > I'm trying to implement a kernel resource tracking/controlling system in > as general a manner as possible. Essentially, for any resources that are > currently held by a process, I need to know which process holds it and > which processes are blocked on it. For example, if a given tty is owned > by a process and three other processes are blocked waiting on it, i want > to be able to track that. > > So, basically, my question is: are there some "central" locations in the > kernel where I can place calls to my code when a process obtains a > resource and when a process blocks on a resource held by another process? > If so, pointers to the code (and any other thoughts) would be greatly > appreciated. > > Thanks! > > -amos > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message