summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2000-04-09 19:26:36 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2000-04-09 19:26:36 +0000
commit53d2fd71df7b46d6258ee64b46bb0cfb343cae8c (patch)
tree2d29df1fdd9667d02575ae3032a84f2af99949c8 /distrib
parent12ece17dccce8d44b4fddd3e91f7a76015763f1c (diff)
Move a locking function that was spread throughout disk device drivers into
the disk structure. The locking was mostly used in disk device drivers to prevent multiple disklabel operations from going on simultaneously against the device. Added disk_construct(), a constructor for the disk structure, that initializes the lock structure in disk. It is called by default in disk_attach() if it hasn't been called yet. Added disk_lock and disk_unlock
Diffstat (limited to 'distrib')
0 files changed, 0 insertions, 0 deletions