Searched refs:pkru (Results 1 – 2 of 2) sorted by relevance
30 let pkru = read_pkru(); in pkru_allows_pkey() localVariable32 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()
4 pub mod pkru; module331 pkru::pkru_allows_pkey(pkru::vma_pkey(vma), write) in vma_access_permitted()