From owner-freebsd-hackers Fri Jan 19 0:36:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from wally.eecs.harvard.edu (wally.eecs.harvard.edu [140.247.60.30]) by hub.freebsd.org (Postfix) with ESMTP id 407D537B402 for ; Fri, 19 Jan 2001 00:36:33 -0800 (PST) Received: from localhost (blackman@localhost) by wally.eecs.harvard.edu (8.10.0/8.10.0) with ESMTP id f0J8aI005718 for ; Fri, 19 Jan 2001 03:36:18 -0500 (EST) Date: Fri, 19 Jan 2001 03:36:18 -0500 (EST) From: Amos Blackman X-Sender: blackman@wally To: freebsd-hackers@FreeBSD.ORG Subject: kernel resource tracking/controlling Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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