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

Function munmap_buffer

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

Unmap a previously mapped buffer. 解除先前映射的缓冲区。

(ptr: *mut u8, length: usize)

Source from the content-addressed store, hash-verified

423/// Unmap a previously mapped buffer.
424/// 解除先前映射的缓冲区。
425pub fn munmap_buffer(ptr: *mut u8, length: usize) {
426 unsafe {
427 libc::munmap(ptr as *mut libc::c_void, length);
428 }
429}
430
431// ─── V4L2 constants not in v4l2-sys-mit ─────────────────────────────────────
432

Callers 1

dropMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected