NewFDAt is a convenience wrapper for t.FDTable().NewFDAt. This automatically passes the task as the context. Precondition: same as FDTable.
(fd int32, file *vfs.FileDescription, flags FDFlags)
| 827 | // |
| 828 | // Precondition: same as FDTable. |
| 829 | func (t *Task) NewFDAt(fd int32, file *vfs.FileDescription, flags FDFlags) (*vfs.FileDescription, error) { |
| 830 | return t.fdTable.NewFDAt(t, fd, file, flags) |
| 831 | } |
| 832 | |
| 833 | // WithMuLocked executes f with t.mu locked. |
| 834 | func (t *Task) WithMuLocked(f func(*Task)) { |
no outgoing calls