Home | History | Annotate | Download | only in libgenlock

Lines Matching defs:hnd

76         private_handle_t *hnd = reinterpret_cast<private_handle_t*>
78 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
79 if (hnd->genlockPrivFd < 0) {
89 lock.fd = hnd->genlockHandle;
92 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) {
95 lockType, strerror(errno), hnd->fd);
103 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) {
105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
152 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
181 hnd->genlockPrivFd = fd;
182 hnd->genlockHandle = lock.fd;
184 hnd->genlockHandle = 0;
206 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
207 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
208 if (hnd->genlockPrivFd < 0) {
214 close_genlock_fd_and_handle(hnd->genlockPrivFd, hnd->genlockHandle);
236 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
237 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
248 lock.fd = hnd->genlockHandle;
257 hnd->genlockPrivFd = fd;
329 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle);
330 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
331 if (hnd->genlockPrivFd < 0) {
340 lock.fd = hnd->genlockHandle;
342 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_WAIT, &lock)) {