public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: SAL functions related questions...
Date: Thu, 01 Apr 2004 22:48:40 +0000	[thread overview]
Message-ID: <19883.1080859720@ocs3.ocs.com.au> (raw)
In-Reply-To: <406C22FC.6090907@Ext.Bull.Net>

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.


      reply	other threads:[~2004-04-01 22:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-01 14:11 SAL functions related questions Francois Wellenreiter
2004-04-01 22:48 ` Keith Owens [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19883.1080859720@ocs3.ocs.com.au \
    --to=kaos@sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox