next up previous contents index
Next: 11.3.2 smp_find_cur_cpu: Return the Up: 11.3 API reference Previous: 11.3 API reference

11.3.1 smp_init: Initializes the SMP startup code

 

SYNOPSIS

#include <oskit/smp.h>

int smp_init(void);

DESCRIPTION

This function does the initial setup for the SMP support. It should be called before any other SMP library routines are used. It identifies the processors and gets them ready and waiting in a busy-loop for a ``go'' from the boot processor.

Note that success does not necessarily mean the system has multiple processors. Rather, failure indicates that the machine does not support multiple processors. smp_get_num_cpus should be used to determine the number of CPUs present.

Don't call this more than once...yet.

RETURNS

It returns 0 on success (SMP-capable system is found). E_SMP_NO_CONFIG is returned on non-IMPS-compliant x86 machines.



University of Utah Flux Research Group