<< Previous | Next >>

OSSemQuery

INT8U OSSemQuery (OS_EVENT *pevent, OS_SEM_DATA *pdata);

Description

Obtains information about a semaphore.

Parameters

pevent
Pointer to the desired semaphore's event control block

pdata
Pointer to a data structure that will hold information about the semaphore.

Return value

OS_NO_ERR
The call was successful and the message was sent.

OS_ERR_EVENT_TYPE
Attempting to obtain data from a non semaphore.

OS_ERR_PEVENT_NULL
If the pevent parameter is a NULL pointer.

Library

OS_SEM.C

See also

OSSemAccept, OSSemCreate, OSSemPend, OSSemPost


020-0059 Rev. D << Previous | Next >> µC/OS-II