summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2010-12-03 18:30:55 +0000
committerbrucec <brucec@FreeBSD.org>2010-12-03 18:30:55 +0000
commit3e854ebf959d26915bc669c5f087303f4ae8c975 (patch)
tree23121d0f1c265dd50d29c909f43df2d78fe51d38 /share
parentc53b6b87732a26be48886aac7c902ab2cf9980b0 (diff)
downloadFreeBSD-src-3e854ebf959d26915bc669c5f087303f4ae8c975.zip
FreeBSD-src-3e854ebf959d26915bc669c5f087303f4ae8c975.tar.gz
Document the fact that passing in a count of zero to the bus_space functions
will result in undefined behaviour. Taken from NetBSD's bus_space(9).
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/bus_space.93
1 files changed, 3 insertions, 0 deletions
diff --git a/share/man/man9/bus_space.9 b/share/man/man9/bus_space.9
index 5a18dfb..b3234c4 100644
--- a/share/man/man9/bus_space.9
+++ b/share/man/man9/bus_space.9
@@ -719,6 +719,9 @@ or which return data read from bus space (i.e., functions which
do not obviously return an error code) do not fail.
They could only fail
if given invalid arguments, and in that case their behaviour is undefined.
+Functions which take a count of bytes have undefined results if the specified
+.Fa count
+is zero.
.Sh TYPES
Several types are defined in
.In machine/bus.h
OpenPOWER on IntegriCloud