Skip to main content

request

Function request 

Source
pub async fn request(
    virtual_file_system: &VirtualFileSystem,
    task: TaskIdentifier,
    action: Action,
    status: u8,
) -> Result<(), Error>
Expand description

Request action on behalf of task.

The caller must be allowed to open the power device (/devices/power) for writing: the platform’s VFS permissions on that node are the privilege policy (root and the administrator group on hosted platforms). The action must be supported by the device. Accepting a request does not complete it: the platform supervisor observes SYSTEM and runs the pipeline.