Lines Matching defs:fdctx
43 static FdContext fdctx;
65 CHECK_NE(s, &fdctx.globsync);
66 CHECK_NE(s, &fdctx.filesync);
67 CHECK_NE(s, &fdctx.socksync);
76 atomic_uintptr_t *pl1 = &fdctx.tab[fd / kTableSizeL2];
107 d->sync = &fdctx.globsync;
116 atomic_store(&fdctx.globsync.rc, (u64)-1, memory_order_relaxed);
117 atomic_store(&fdctx.filesync.rc, (u64)-1, memory_order_relaxed);
118 atomic_store(&fdctx.socksync.rc, (u64)-1, memory_order_relaxed);
126 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed);
138 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed);
203 init(thr, pc, fd, &fdctx.filesync);
258 init(thr, pc, fd, &fdctx.socksync);
266 Acquire(thr, pc, (uptr)&fdctx.connectsync);
267 init(thr, pc, newfd, &fdctx.socksync);
275 Release(thr, pc, (uptr)&fdctx.connectsync);
282 init(thr, pc, fd, &fdctx.socksync);