9p.h (bc6ec396d471d9e4aae7e2ff8b72e11da9a97665) 9p.h (9204028dbbdaf742264c5de40dfcc3dfd43a6355)
1#ifndef QEMU_9P_H
2#define QEMU_9P_H
3
4#include <dirent.h>
5#include <utime.h>
6#include <sys/resource.h>
7#include "fsdev/file-op-9p.h"
8#include "fsdev/9p-iov-marshal.h"

--- 410 unchanged lines hidden (view full) ---

419 uint64_t length;
420 uint32_t proc_id;
421 V9fsString client_id;
422} V9fsGetlock;
423
424extern int open_fd_hw;
425extern int total_open_fd;
426
1#ifndef QEMU_9P_H
2#define QEMU_9P_H
3
4#include <dirent.h>
5#include <utime.h>
6#include <sys/resource.h>
7#include "fsdev/file-op-9p.h"
8#include "fsdev/9p-iov-marshal.h"

--- 410 unchanged lines hidden (view full) ---

419 uint64_t length;
420 uint32_t proc_id;
421 V9fsString client_id;
422} V9fsGetlock;
423
424extern int open_fd_hw;
425extern int total_open_fd;
426
427static inline void v9fs_path_write_lock(V9fsState *s)
427static inline void coroutine_fn
428v9fs_path_write_lock(V9fsState *s)
428{
429 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
430 qemu_co_rwlock_wrlock(&s->rename_lock);
431 }
432}
433
429{
430 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
431 qemu_co_rwlock_wrlock(&s->rename_lock);
432 }
433}
434
434static inline void v9fs_path_read_lock(V9fsState *s)
435static inline void coroutine_fn
436v9fs_path_read_lock(V9fsState *s)
435{
436 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
437 qemu_co_rwlock_rdlock(&s->rename_lock);
438 }
439}
440
437{
438 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
439 qemu_co_rwlock_rdlock(&s->rename_lock);
440 }
441}
442
441static inline void v9fs_path_unlock(V9fsState *s)
443static inline void coroutine_fn
444v9fs_path_unlock(V9fsState *s)
442{
443 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
444 qemu_co_rwlock_unlock(&s->rename_lock);
445 }
446}
447
448static inline uint8_t v9fs_request_cancelled(V9fsPDU *pdu)
449{

--- 33 unchanged lines hidden ---
445{
446 if (s->ctx.export_flags & V9FS_PATHNAME_FSCONTEXT) {
447 qemu_co_rwlock_unlock(&s->rename_lock);
448 }
449}
450
451static inline uint8_t v9fs_request_cancelled(V9fsPDU *pdu)
452{

--- 33 unchanged lines hidden ---