SAL functions related questions...
Hi,
I'm still working about INIT management problematics.
I just have a question about SAL_GET_STATE_INFO function.
What does exactly mean a return code equal to "1" (e.g. "Call completed without error but some information was lost due to overflow") ? I always get this "error" back when pushing on the dump button on a Tiger4. What is it due to ?
And which size does exactly SAL_GET_STATE_INFO_SIZE return ? When should this function be called to allocate large enough buffers (after receiving INIT interrupt or at kernel startup) ?
Thanks for your help.
Kind regards,
Francois WELLENREITER
Quoted 1 line · Francois Wellenreiter
And which size does exactly
SAL_GET_STATE_INFO_SIZEreturn ?
It returns the maximum size of the specified record type.
Quoted 3 lines
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.