
SCIOPTA - Real-Time Kernel
User’s Manual Manual Version 4.1 7-3
SCIOPTA - Real-Time Kernel
7 Pools
7.4 Creating Pools
7.4.1 Static Pool Creation
Static pools are pools which are automatically created when the systems boots up. They are defined in the SCONF
configuration tool.
Figure 7-2: Pool Creation by SCONF
Please consult chapter 16.12 “Creating Processes and Pools” on page 16-18 for more information about module
creation by the SCONF t
ool.
7.4.2 Dynamic Pool Creation
Another way is to create modules dynamically by the sc_poolCreate system call.
static const sc_bufsize_t bufsizes[8]=
{
4,
8,
16,
32,
64,
128,
256,
700
};
myPool_plid = sc_poolCreate(
/* start-address */ 0,
/* total size */ 4000,
/* number of buffers */ 8,
/* buffersizes */ bufsizes,
/* name */ "myPool"
);
Figure 7-3: Dynamic Module Creation
Comentarios a estos manuales