Lines Matching refs:fdctx
48 static FdContext fdctx; variable
71 CHECK_NE(s, &fdctx.globsync); in unref()
72 CHECK_NE(s, &fdctx.filesync); in unref()
73 CHECK_NE(s, &fdctx.socksync); in unref()
82 atomic_uintptr_t *pl1 = &fdctx.tab[fd / kTableSizeL2]; in fddesc()
119 d->sync = &fdctx.globsync; in init()
138 atomic_store(&fdctx.globsync.rc, (u64)-1, memory_order_relaxed); in FdInit()
139 atomic_store(&fdctx.filesync.rc, (u64)-1, memory_order_relaxed); in FdInit()
140 atomic_store(&fdctx.socksync.rc, (u64)-1, memory_order_relaxed); in FdInit()
148 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdOnFork()
160 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdLocation()
253 init(thr, pc, fd, &fdctx.filesync); in FdFileCreate()
332 init(thr, pc, fd, &fdctx.socksync); in FdSocketCreate()
340 Acquire(thr, pc, (uptr)&fdctx.connectsync); in FdSocketAccept()
341 init(thr, pc, newfd, &fdctx.socksync); in FdSocketAccept()
349 Release(thr, pc, (uptr)&fdctx.connectsync); in FdSocketConnecting()
356 init(thr, pc, fd, &fdctx.socksync); in FdSocketConnect()