More on MTRR control

Richard Gooch (rgooch@atnf.CSIRO.AU)
Sun, 14 Dec 1997 19:23:53 +1100

Hi, all. After further discussion with some people, I'm thinking of
an interface which allows better bookkeeping of MTRRs. So, instead of
creating a /proc or sysctl interface to manipulate MTRRs, I propose a
new device: /dev/mtrr

A userland process would use ioctl's on the /dev/mtrr fd. When a
process closed the fd (or crashed) the usage count for any MTRRs it
set would be decremented. This would of course require the X server to
keep the /dev/mtrr fd open for it's entire lifetime.