Home
last modified time | relevance | path

Searched refs:pkru (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/mm/
H A Dpkru.rs30 let pkru = read_pkru(); in pkru_allows_pkey() localVariable
32 if !pkru_allows_read(pkru, pkey) { in pkru_allows_pkey()
35 if write & !pkru_allows_write(pkru, pkey) { in pkru_allows_pkey()
42 pub fn pkru_allows_read(pkru: u32, pkey: u16) -> bool { in pkru_allows_read()
44 pkru & ((PKRU_AD_BIT as u32) << pkru_pkey_bits) > 0 in pkru_allows_read()
47 pub fn pkru_allows_write(pkru: u32, pkey: u16) -> bool { in pkru_allows_write()
49 pkru & (((PKRU_AD_BIT | PKRU_WD_BIT) as u32) << pkru_pkey_bits) > 0 in pkru_allows_write()
H A Dmod.rs4 pub mod pkru; module
331 pkru::pkru_allows_pkey(pkru::vma_pkey(vma), write) in vma_access_permitted()