pub fn sys_vmo_cache_policy(&self, handle_value: HandleValue, policy: u32) -> ZxResult {
        let proc = self.thread.proc();
        let vmo = proc.get_object_with_rights::<VmObject>(handle_value, Rights::MAP)?;
        let policy = CachePolicy::try_from(policy).or(Err(ZxError::INVALID_ARGS))?;
        (*vmo).set_cache_policy(policy)
    }
/// Set the caching policy for pages held by a VMO.
Set the caching policy for pages held by a VMO.
Set the caching policy for pages held by a VMO .
pub fn sys_vmo_cache_policy(&self, handle_value: HandleValue, policy: u32) -> ZxResult {
        let proc = self.thread.proc();
        let vmo = proc.get_object_with_rights::<VmObject>(handle_value, Rights::MAP)?;
        let policy = CachePolicy::try_from(policy).or(Err(ZxError::INVALID_ARGS))?;
        (*vmo).set_cache_policy(policy)
    }
pub fn sys_vmo_cache_policy ( & self , handle_value : HandleValue , policy : u32 ) -> ZxResult { let proc = self . thread . proc ( ) ; let vmo = proc . get_object_with_rights :: < VmObject > ( handle_value , Rights :: MAP ) ? ; let policy = CachePolicy :: try_from ( policy ) . or ( Err ( ZxError :: INVALID_ARGS ) ) ? ; ( * vmo ) . set_cache_policy ( policy ) }
Set the caching policy for pages held by a VMO.
Set the caching policy for pages held by a VMO .
&self
handle_value
HandleValue
policy
u32
&self
handle_value
HandleValue
policy
u32