Lines Matching refs:FdDesc
28 struct FdDesc { struct
74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc()
80 uptr size = kTableSizeL2 * sizeof(FdDesc); in fddesc()
90 return &((FdDesc*)l1)[fd % kTableSizeL2]; // NOLINT in fddesc()
96 FdDesc *d = fddesc(thr, pc, fd); in init()
133 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdOnFork()
137 FdDesc *d = &tab[l2]; in FdOnFork()
145 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdLocation()
149 int l2 = (addr - (uptr)tab) / sizeof(FdDesc); in FdLocation()
150 FdDesc *d = &tab[l2]; in FdLocation()
163 FdDesc *d = fddesc(thr, pc, fd); in FdAcquire()
174 FdDesc *d = fddesc(thr, pc, fd); in FdRelease()
186 FdDesc *d = fddesc(thr, pc, fd); in FdAccess()
194 FdDesc *d = fddesc(thr, pc, fd); in FdClose()
230 FdDesc *od = fddesc(thr, pc, oldfd); in FdDup()