Lines Matching defs:pollDesc
75 type pollDesc struct { struct
76 _ sys.NotInHeap
77 link *pollDesc // in pollcache, protected by pollcache.lock
78 fd uintptr // constant for pollDesc usage lifetime
79 fdseq atomic.Uintptr // protects against stale pollDesc
96 atomicInfo atomic.Uint32 // atomic pollInfo
100 rg atomic.Uintptr // pdReady, pdWait, G waiting for read or pdNil
101 wg atomic.Uintptr // pdReady, pdWait, G waiting for write or pdNil
103 lock mutex // protects the following fields
104 closing bool
105 rrun bool // whether rt is running
106 wrun bool // whether wt is running
107 user uint32 // user settable cookie
108 rseq uintptr // protects from stale read timers
109 rt timer // read deadline timer
110 rd int64 // read deadline (a nanotime in the future, -1 when expired)
111 wseq uintptr // protects from stale write timers
112 wt timer // write deadline timer
113 wd int64 // write deadline (a nanotime in the future, -1 when expired)
114 self *pollDesc // storage for indirect interface. See (*pollDesc).makeArg.
142 func (pd *pollDesc) info() pollInfo {
153 func (pd *pollDesc) publishInfo() {
176 func (pd *pollDesc) setEventErr(b bool, seq uintptr) {
281 func poll_runtime_pollClose(pd *pollDesc) {
323 func poll_runtime_pollReset(pd *pollDesc, mode int) int {
342 func poll_runtime_pollWait(pd *pollDesc, mode int) int {
364 func poll_runtime_pollWaitCanceled(pd *pollDesc, mode int) {
372 func poll_runtime_pollSetDeadline(pd *pollDesc, d int64, mode int) {
452 func poll_runtime_pollUnblock(pd *pollDesc) {
494 func netpollready(toRun *gList, pd *pollDesc, mode int32) int32 {
512 func netpollcheckerr(pd *pollDesc, mode int32) int {
548 func netpollblock(pd *pollDesc, mode int32, waitio bool) bool {
591 func netpollunblock(pd *pollDesc, mode int32, ioready bool, delta *int32) *g {
622 func netpolldeadlineimpl(pd *pollDesc, seq uintptr, read, write bool) {
719 func (pd *pollDesc) makeArg() (i any) {