Re: SAL functions related questions...

From: Keith Owens <kaos_at_sgi.com>
Date: 2004-04-02 08:48:40
On Thu, 01 Apr 2004 16:11:08 +0200, 
Francois Wellenreiter <Francois.Wellenreiter@Ext.Bull.Net> wrote:
>And which size does exactly SAL_GET_STATE_INFO_SIZE return ?

It returns the maximum size of the specified record type.

>When should
>this function be called to allocate large enough buffers (after 
>receiving INIT interrupt or at kernel startup) ?

In theory you could use SAL_GET_STATE_INFO_SIZE just before reading the
record.  However MCA and INIT events are not irq safe, you must _NOT_
call any kernel routines that depend on disabled locks during an MCA or
INIT event.  All kernel memory allocation routines depend on disabled
locks so it is not safe to use those routines during an MCA or INIT
event, which means that you must preallocate memory for these record
types.  Therefore Linux preallocates storage for each record type
during boot.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Apr 1 17:49:59 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:25 EST