Struct uefi_specs::hyperv::nvram::NvramVariableCommand
source · #[repr(C)]pub struct NvramVariableCommand {
pub attributes: u32,
pub name_address: U64<NativeEndian>,
pub name_bytes: u32,
pub vendor_guid: Guid,
pub data_address: U64<NativeEndian>,
pub data_bytes: u32,
}
Expand description
MsvmPkg: NVRAM_COMMAND_DESCRIPTOR
Fields§
§attributes: u32
UEFI variable attributes associated with the variable: access rights (RT/BS).
Used as input for the SetVariable command. Used as output for the GetVariable command.
name_address: U64<NativeEndian>
GPA of the buffer containing a 16-bit unicode variable name.
Memory at this location is read for the GetVariable, SetVariable, GetNextVariable command. Memory at this location is written to for the GetNextVariable command.
name_bytes: u32
Size in bytes of the buffer at VariableNameAddress.
Used as input for GetVariable, SetVariable, and GetNextVariable commands. Used as output for the GetNextVariable command.
vendor_guid: Guid
A GUID comprising the other half of the variable name.
Used as input for GetVariable, SetVariable, and GetNextVariable commands. Used as output for the GetNextVariable command.
data_address: U64<NativeEndian>
GPA of the buffer containing variable data. Memory at this location is written to for the GetVariable command.
Memory at this location is read for the SetVariable command.
data_bytes: u32
Size of the buffer at VariableDataAddress.
Used as input for the GetVariable command. Used as output for the GetVariable and SetVariable commands.
Trait Implementations§
source§impl AsBytes for NvramVariableCommandwhere
u32: AsBytes,
U64<NativeEndian>: AsBytes,
Guid: AsBytes,
HasPadding<NvramVariableCommand, { _ }>: ShouldBe<false>,
impl AsBytes for NvramVariableCommandwhere
u32: AsBytes,
U64<NativeEndian>: AsBytes,
Guid: AsBytes,
HasPadding<NvramVariableCommand, { _ }>: ShouldBe<false>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Debug for NvramVariableCommand
impl Debug for NvramVariableCommand
source§impl FromBytes for NvramVariableCommandwhere
u32: FromBytes,
U64<NativeEndian>: FromBytes,
Guid: FromBytes,
impl FromBytes for NvramVariableCommandwhere
u32: FromBytes,
U64<NativeEndian>: FromBytes,
Guid: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for NvramVariableCommandwhere
u32: FromZeroes,
U64<NativeEndian>: FromZeroes,
Guid: FromZeroes,
impl FromZeroes for NvramVariableCommandwhere
u32: FromZeroes,
U64<NativeEndian>: FromZeroes,
Guid: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Box<Self>
from zeroed bytes. Read more