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

Method Release

pkg/sentry/socket/plugin/stack/socket.go:535–540  ·  view source on GitHub ↗

Release implements socket.Socket.Release.

(ctx context.Context)

Source from the content-addressed store, hash-verified

533
534// Release implements socket.Socket.Release.
535func (s *socketOperations) Release(ctx context.Context) {
536 t := kernel.TaskFromContext(ctx)
537 t.Kernel().DeleteSocket(&s.vfsfd)
538 stack.notifier.RemoveFD(s.fd)
539 cgo.Close(s.fd)
540}
541
542// GetSockName implements socket.Socket.GetSockName.
543func (s *socketOperations) GetSockName(t *kernel.Task) (linux.SockAddr, uint32, *syserr.Error) {

Callers

nothing calls this directly

Calls 5

TaskFromContextFunction · 0.92
CloseFunction · 0.92
DeleteSocketMethod · 0.80
KernelMethod · 0.80
RemoveFDMethod · 0.65

Tested by

no test coverage detected