Up to [local] / src / sys / sys
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_2_8_BASE
Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 9 19:26:35 2000 UTC (24 years, 1 month ago) by csapuntz
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE,
OPENBSD_2_8,
OPENBSD_2_7_BASE,
OPENBSD_2_7
Changes since 1.4: +9 -1 lines
Diff to previous 1.4 (colored)
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