SCASH_INITIALIZE(3) | SCASH_INITIALIZE(3) |
int scash_initialize(int argc, char **argv, int dsm_area_size)
scash_initialize()
initializes the SCASH system for C
runtime. All SCASH related functions must be called after calling
scash_initialize()
. The arguments argc
and
argv
must be the same as those passed to the
main()
function.
The total shared memory size should be specified as
dsm_area_size
. If the specified shared memory size is
not a multiple of the page size, it will be rounded up to a multiple
of the page size.
scash_initialize
returns 0 on success.