Cygdrvmutexinit, Cygdrvmutexdestroy, Cyg_drv_mutex_init – Comtrol eCos User Manual

Page 398: Cyg_drv_mutex_destroy

Advertising
background image

Chapter 18. Device Driver Interface to the Kernel

Result:

None

Level:

DSR

Description:

Re-enables

scheduling

of

DSRs.

This

function

decrements

the

counter

incremented

by

cyg_drv_dsr_lock()

. DSRs are only allowed to be delivered when the counter goes to zero.

cyg_drv_mutex_init

Function:

void cyg_drv_mutex_init(cyg_drv_mutex *mutex)

Arguments:

mutex

- pointer to mutex to initialize

Result:

None

Level:

Thread

Description:

Initialize the mutex pointed to by the

mutex

argument.

cyg_drv_mutex_destroy

Function:

void cyg_drv_mutex_destroy( cyg_drv_mutex *mutex )

Arguments:

mutex

- pointer to mutex to destroy

Result:

None

294

Advertising