MCPcopy Create free account
hub / github.com/RustCV/RustCV / close_device

Function close_device

rustcv-camera/src/backend/linux/sys.rs:389–393  ·  view source on GitHub ↗

Close a V4L2 device file descriptor. 关闭 V4L2 设备文件描述符。

(fd: RawFd)

Source from the content-addressed store, hash-verified

387/// Close a V4L2 device file descriptor.
388/// 关闭 V4L2 设备文件描述符。
389pub fn close_device(fd: RawFd) {
390 unsafe {
391 libc::close(fd);
392 }
393}
394
395// ─── mmap ───────────────────────────────────────────────────────────────────
396

Callers 1

dropMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected