truckman dd733c95bc Make a temporary copy of the output data in the generic sysctl handlers
so that the data is less likely to be inconsistent if SYSCTL_OUT() blocks.
If the data is large, wire the output buffer instead.

This is somewhat less than optimal, since the handler could skip the copy
if it knew that the data was static.

If the data is dynamic, we are still not guaranteed to get a consistent
copy since another processor could change the data while the copy is in
progress because the data is not locked.  This problem could be solved if
the generic handlers had the ability to grab the proper lock before the
copy and release it afterwards.

This may duplicate work done in other sysctl handlers in the kernel which
also copy the data, possibly while a lock is held, before calling they call
a generic handler to output the data.  These handlers should probably call
SYSCTL_OUT() directly.
2002-07-28 21:06:14 +00:00
..
2002-03-25 13:52:45 +00:00
2002-06-29 17:26:22 +00:00
2002-06-29 17:26:22 +00:00
2002-07-25 03:21:35 +00:00
2002-06-29 17:26:22 +00:00
2002-04-06 08:44:04 +00:00
2002-06-29 00:29:12 +00:00
2002-06-29 17:26:22 +00:00
2002-07-25 03:21:35 +00:00
2002-06-29 02:00:02 +00:00
2002-06-29 02:00:02 +00:00
2002-06-29 17:26:22 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2002-06-29 02:00:02 +00:00
2002-03-19 21:25:46 +00:00
2002-06-29 02:00:02 +00:00
2002-06-29 02:00:02 +00:00
2002-06-29 17:26:22 +00:00
2002-07-22 19:05:44 +00:00
2002-07-22 18:27:54 +00:00
2002-07-22 18:27:54 +00:00
2001-09-12 08:38:13 +00:00
2002-03-19 21:25:46 +00:00
2002-03-19 21:25:46 +00:00
2002-07-13 04:37:22 +00:00
2002-06-28 23:17:36 +00:00
2002-06-28 23:17:36 +00:00