Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2001 03:36:18 -0500 (EST)
From:      Amos Blackman <blackman@eecs.harvard.edu>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   kernel resource tracking/controlling
Message-ID:  <Pine.OSF.4.20.0101190321400.20423-100000@wally>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.20.0101190321400.20423-100000>