- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetPollFDAndNetwork (0.32 sec)
-
src/os/export_linux_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package os var ( PollCopyFileRangeP = &pollCopyFileRange PollSpliceFile = &pollSplice GetPollFDAndNetwork = getPollFDAndNetwork CheckPidfdOnce = checkPidfdOnce ) const StatusDone = statusDone func (p *Process) Status() processStatus { return processStatus(p.state.Load() & processStatusMask)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 473 bytes - Viewed (0) -
src/os/zero_copy_linux.go
lr.N -= written } return written, handled, wrapSyscallError("copy_file_range", err) } // getPollFDAndNetwork tries to get the poll.FD and network type from the given interface // by expecting the underlying type of i to be the implementation of syscall.Conn // that contains a *net.rawConn. func getPollFDAndNetwork(i any) (*poll.FD, poll.String) { sc, ok := i.(syscall.Conn) if !ok { return nil, "" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4.6K bytes - Viewed (0) -
src/os/readfrom_linux_test.go
} if err = rc.Control(func(fd uintptr) { pfd, network := GetPollFDAndNetwork(server) if pfd == nil { t.Fatalf("GetPollFDAndNetwork didn't return poll.FD") } if string(network) != proto { t.Fatalf("GetPollFDAndNetwork returned wrong network, got: %s, want: %s", network, proto) } if pfd.Sysfd != int(fd) { t.Fatalf("GetPollFDAndNetwork returned wrong poll.FD, got: %d, want: %d", pfd.Sysfd, int(fd)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 20.3K bytes - Viewed (0)