Date: Fri, 25 Aug 2006 13:37:33 -0400 From: "Devon H. O'Dell" <devon.odell@coyotepoint.com> To: doc@FreeBSD.org Subject: Fix for ithread.9 Message-ID: <44EF355D.5050208@coyotepoint.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------080702060407090002080704 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hey All, I was discussing UMA with Robert Watson yesterday; specifically its usage implications in an interrupt context. He suggested adding some information to ithread(9) specifying semantics for memory allocation in an interrupt context. So I came up with this tiny patch, shot it jhb@'s way, he reviewed it and told me to shoot it this way. So here it is, apparently ready to be committed. Thanks, --dho --------------080702060407090002080704 Content-Type: text/plain; name="interrupt_sleep.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="interrupt_sleep.patch" --- share/man/man9/ithread.9 Mon Jul 5 13:12:52 2004 +++ share/man/man9/ithread.9 Thu Aug 24 11:04:35 2006 @@ -202,6 +202,10 @@ and .Dv INTR_ENTROPY flags are not valid for software interrupt handlers. +.Pp +It is not permitted to sleep in an interrupt thread; hence, any memory +or zone allocations in an interrupt thread should be specified with the +M_NOWAIT flag set. Any allocation errors must be handled thereafter. .Sh RETURN VALUES The .Fn ithread_add_handler , @@ -340,7 +344,9 @@ .El .Sh SEE ALSO .Xr kthread 9 , -.Xr swi 9 +.Xr malloc 9 , +.Xr swi 9 , +.Xr uma 9 .Sh HISTORY Interrupt threads and their corresponding API first appeared in .Fx 5.0 . --------------080702060407090002080704--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44EF355D.5050208>