summaryrefslogtreecommitdiff
path: root/devio/devpager.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-10 15:38:06 +0000
committerMiles Bader <miles@gnu.org>1995-04-10 15:38:06 +0000
commitfbe1a999161968d717a4c62f9bbf593324190188 (patch)
tree0104cf0be8cfb81144e9e05945a792cb4f2cb8f3 /devio/devpager.c
parentb2d7c55eb720c1c0005f553937c8eb03a0a72dc4 (diff)
(main, check_open_hook, close_device, trivfs_goaway): Add a new lock,
device_lock, and use it to control access to the DEVICE variable. (open_hook, trivfs_modify_stat, trivfs_S_fys_syncfs): Copy DEVICE before using it, so it doesn't change underneath us. (clean_exit): Add a new argument that says whether to aquire a lock before doing our work. (ports_notice_idle, ports_no_live_ports): Use it. (close_device): New function, closes DEVICE cleanly. (clean_exit, ports_no_hard_ports): Use close_device. (main): Use trivfs_startup instead of doing it manually. (trivfs_goaway): Try and do it better, paying attention to flags, etc.; this still isn't right though, we may want to wait for the ports library to be fixed first. (DEBUG): New macro, executes its arg with debug_lock locked.
Diffstat (limited to 'devio/devpager.c')
0 files changed, 0 insertions, 0 deletions