AioExit


Function

Performs termination processing of driver. This function supports multi-process.

Format

Ret = AioExit ( Id )

Parameters

Id [ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the ID retrieved from AioInit.

Return values

Ret [ C, C++ : long ] [ Python : ctypes.c_long ]

Return values

Content

0

Normality completion

10001

Invalid Id was specified
Use the Id retrieved from AioInit to specify the Id in this function.

10002

AIO driver can't be called
At first, perform AioInit function.

Remarks

This function is performed as application terminates.
If an application terminates without performing this function, the sequent accesses to the device may fail.

If the device is in operation, the operation stops.
Releases all memory and threads used by the driver.
After this function is performed, device cannot be accessed until AioInit function is performed.

Example

Performs termination processing of driver.

C, C++

long Ret;
Ret = AioExit ( Id );
 

Python

Ret = ctypes.c_long()
Ret.value = caio.AioExit ( Id )
 

See also

AioInit

Driver Multi-process ID