diff options
author | trasz <trasz@FreeBSD.org> | 2009-02-22 13:38:16 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-02-22 13:38:16 +0000 |
commit | 2322d4bae1774719c281cb0fdcc044adf216c601 (patch) | |
tree | b3d3b773f7f32b8edc7b1d3b7fb560532a02b4aa /share/man/man9/disk.9 | |
parent | 28540b9e6a2058a3e010ecc9193f7be85b5476e8 (diff) | |
download | FreeBSD-src-2322d4bae1774719c281cb0fdcc044adf216c601.zip FreeBSD-src-2322d4bae1774719c281cb0fdcc044adf216c601.tar.gz |
Mention disk_gone() in disk(9).
Approved by: rwatson (mentor)
Diffstat (limited to 'share/man/man9/disk.9')
-rw-r--r-- | share/man/man9/disk.9 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/man/man9/disk.9 b/share/man/man9/disk.9 index a25134f..4643512 100644 --- a/share/man/man9/disk.9 +++ b/share/man/man9/disk.9 @@ -40,6 +40,8 @@ .Ft void .Fn disk_create "struct disk *disk" "int version" .Ft void +.Fn disk_gone "struct disk *disk" +.Ft void .Fn disk_destroy "struct disk *disk" .Sh DESCRIPTION The disk storage API permits kernel device drivers providing access to @@ -65,6 +67,11 @@ function, fill in the fields and call .Fn disk_create when the device is ready to service requests. +.Fn disk_gone +orphans all of the providers associated with the drive, setting an error +condition of ENXIO in each one. +In addition, it prevents a re-taste on last close for writing if an error +condition has been set in the provider. After calling .Fn disk_destroy , the device driver is not allowed to access the contents of |