Skip to navigation

holoscan::essential::bind_fd

Beta
View as MarkdownOpen in Claude
HOLOSCAN_ESSENTIAL_EXPORT expected<void, Error> holoscan::essential::bind_fd(
RunBindings &bindings,
)

Capture a close-on-exec duplicate immediately and stage it for one run.

The duplicate observes the same open file description. This function does not alter file status flags, read data, arm observation, or acquire the resource used by compute.

Returns: Success after ownership is retained, or a typed failure with no partial staging.

Parameters

bindings
RunBindings &

Unconsumed destination set.

source
const SourceSelector<ReadableSource> &

Exact typed source selection whose declaration permits an external attachment.

fd
BorrowedFD

Caller-owned original, which is never closed or changed by the SDK.