pub fn pkey_set(pkey: RawPkey, access_rights: PkeyAccessRights) {
    let mut pkru = rdpkru();
    pkru &= !(0x3 << (2 * pkey as i32));
    pkru |= access_rights.bits() << (2 * pkey as i32);
    wrpkru(pkru);
}
/// Set access right of given pkey.
Set access right of given pkey.
Set access right of given pkey .
pub fn pkey_set(pkey: RawPkey, access_rights: PkeyAccessRights) {
    let mut pkru = rdpkru();
    pkru &= !(0x3 << (2 * pkey as i32));
    pkru |= access_rights.bits() << (2 * pkey as i32);
    wrpkru(pkru);
}
pub fn pkey_set ( pkey : RawPkey , access_rights : PkeyAccessRights ) { let mut pkru = rdpkru ( ) ; pkru &= ! ( 0x3 << ( 2 * pkey as i32 ) ) ; pkru |= access_rights . bits ( ) << ( 2 * pkey as i32 ) ; wrpkru ( pkru ) ; }
Set access right of given pkey.
Set access right of given pkey .
pkey
RawPkey
access_rights
PkeyAccessRights
pkey
RawPkey
access_rights
PkeyAccessRights