pipewire: add pipewire client
This commit is contained in:
parent
2512470231
commit
2568b7b1f5
19 changed files with 4573 additions and 2 deletions
7
src/utils/page_size.rs
Normal file
7
src/utils/page_size.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use {once_cell::sync::Lazy, uapi::c};
|
||||
|
||||
static PAGE_SIZE: Lazy<usize> = Lazy::new(|| uapi::sysconf(c::_SC_PAGESIZE).unwrap_or(4096) as _);
|
||||
|
||||
pub fn page_size() -> usize {
|
||||
*PAGE_SIZE
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue