67
67
*this function verify if the lock requested exists in the kernel space. If yes, then nothing is done, else we create the lock in the kernel space. This function also gives the number of processes that may request the lock afterwards, including the one that just created it.
68
68
*@param[in] ctx - the pcilib_t structure running
69
69
*@param[in] flags - the flag defining the property of the lock
71
71
*@return the corresponding lock, or a new one if it did not exist before
73
73
pcilib_lock_t *pcilib_get_lock(pcilib_t *ctx, pcilib_lock_flags_t flags, const char *lock_id, ...);