Aci_async_find(), Aci_async_find() -14, Figure 5-11 – ADIC Server User Manual

Page 186: Figure 5-12, Table 5-8, Para

Advertising
background image

5-14

DAS ACI 3.0 Asynchronous Support Layer

601626-B

Figure 5-11

Example if the aci_async_create Function

aci_async_find()

The aci_async_find function looks for the appropriate
aci_async_entry in shared memory array. If an entry has the
same value in the pid field as pid parameter it is returned. See

Figure 5-12

aci_async_find Function Call

See Table 5-8 for a description of the parameter for the
aci_async_find function.

Table 5-8

Parameter for the aci_async_find Function

Parameter

Description

pid

identifies the request entry in the shared memory array

. . .

/*

* sadmin sample application, dasadmin.c file

* creating a table in shared memory - 50 entries

*/

if( ( async_entry = aci_async_create( 50L ) ) == 0 )

{

aci_perror( "create async failed" );

return 1;

}

. . .

#include "aci_async.h"

aci_async_entry* aci_async_find(pid_t pid);

Advertising