MCPcopy Index your code
hub / github.com/google/gvisor / boolToInt32

Function boolToInt32

pkg/sentry/socket/netstack/netstack.go:987–992  ·  view source on GitHub ↗
(v bool)

Source from the content-addressed store, hash-verified

985}
986
987func boolToInt32(v bool) int32 {
988 if v {
989 return 1
990 }
991 return 0
992}
993
994// GetSockOptSocket handles linux getsockopt(2) when level is SOL_SOCKET.
995func GetSockOptSocket(t *kernel.Task, s socket.Socket, ep commonEndpoint, family int, _ linux.SockType, name, outLen int) (marshal.Marshallable, *syserr.Error) {

Callers 4

GetSockOptSocketFunction · 0.85
getSockOptTCPMethod · 0.85
getSockOptIPv6Method · 0.85
getSockOptIPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…