| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: kmem.9,v 1.11 2010/12/02 12:54:13 wiz Exp $ | | 1 | .\" $NetBSD: kmem.9,v 1.12 2011/01/08 18:07:14 jym Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c)2006 YAMAMOTO Takashi, | | 3 | .\" Copyright (c)2006 YAMAMOTO Takashi, |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
| @@ -257,19 +257,19 @@ subsystem is implemented within the file | | | @@ -257,19 +257,19 @@ subsystem is implemented within the file |
257 | .Xr pool_cache 9 | | 257 | .Xr pool_cache 9 |
258 | .\" ------------------------------------------------------------ | | 258 | .\" ------------------------------------------------------------ |
259 | .Sh CAVEATS | | 259 | .Sh CAVEATS |
260 | Neither | | 260 | Neither |
261 | .Fn kmem_alloc | | 261 | .Fn kmem_alloc |
262 | nor | | 262 | nor |
263 | .Fn kmem_free | | 263 | .Fn kmem_free |
264 | can be used from interrupt context, from a soft interrupt, or from | | 264 | can be used from interrupt context, from a soft interrupt, or from |
265 | a callout. | | 265 | a callout. |
266 | Use | | 266 | Use |
267 | .Xr pool_cache 9 | | 267 | .Xr pool_cache 9 |
268 | in these situations. | | 268 | in these situations. |
269 | .\" ------------------------------------------------------------ | | 269 | .\" ------------------------------------------------------------ |
270 | .Sh SECURITY CONSIDERATION | | 270 | .Sh SECURITY CONSIDERATIONS |
271 | As the memory allocated by | | 271 | As the memory allocated by |
272 | .Fn kmem_alloc | | 272 | .Fn kmem_alloc |
273 | is uninitialized, it can contain security-sensitive data left by its | | 273 | is uninitialized, it can contain security-sensitive data left by its |
274 | previous user. | | 274 | previous user. |
275 | It is the caller's responsibility not to expose it to the world. | | 275 | It is the caller's responsibility not to expose it to the world. |