From 6fc6b69327bd0adfb81afd2c13fd8badd919d97e Mon Sep 17 00:00:00 2001 From: Christian Brueffer Date: Tue, 2 Aug 2005 13:54:52 +0000 Subject: [PATCH] Mention that the softc is zeroed after allocation. Noticed by: sam MFC after: 3 days --- share/man/man9/device_get_softc.9 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/man/man9/device_get_softc.9 b/share/man/man9/device_get_softc.9 index 8321e1a04490..e21811588dd8 100644 --- a/share/man/man9/device_get_softc.9 +++ b/share/man/man9/device_get_softc.9 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 16, 1998 +.Dd August 2, 2005 .Dt DEVICE_GET_SOFTC 9 .Os .Sh NAME @@ -42,7 +42,8 @@ .Sh DESCRIPTION Return the driver-specific state of .Fa dev . -The softc is automatically allocated the first time it is requested. +The softc is automatically allocated and zeroed the first +time it is requested. The size of the allocation is determined by the device's .Vt driver_t information used to define the driver.