Release implements socket.Socket.Release.
(ctx context.Context)
| 533 | |
| 534 | // Release implements socket.Socket.Release. |
| 535 | func (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. |
| 543 | func (s *socketOperations) GetSockName(t *kernel.Task) (linux.SockAddr, uint32, *syserr.Error) { |
nothing calls this directly
no test coverage detected