[−][src]Struct dpdk_unix::android_linux::mounts::HugePageMountSettings
Settings for mounting a hugetlbfs file system.
Fields
mount_point: PathBufMount point for huge pages file system.
There is no real standard; we default to /dev/hugepages, this being the default used by the Ubuntu official deb package and similar in spirit to /dev/shm. Other options include:-
- DPDK
dpdk-setup.shuses/mnt/huge - DPDK docs variously also use
/mnt/hugepagesand/mnt/hugetlbfs. - RHEL, Debian tutorials and examples use
/hugetlbfs. - Ubuntu official deb package uses
/dev/hugepages(https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=blob;f=debian/dpdk-init;h=86eda2cb9c4e802aa07603761a82b312f4bb7fa2;hb=HEAD). - At least one admin on a forum uses
/mnt/huge_1gb.
user_id: uid_tUser id (uid), eg 0.
group_id: gid_tGroup id (gid), eg 0.
mode: mode_tPermissions mode.
Debian uses 1770 for mode.
maximum_value_of_memory_in_bytes: Option<u64>eg None.
minimum_value_of_memory_in_bytes: Option<u64>eg None.
maximum_number_of_inodes: Option<u64>eg None.
mount_flags: MountFlagseg MountFlags::DoNotUpdateAccessTimes | MountFlags::DoNotAllowProgramsToBeExecuted | MountFlags::DoNotHonourSetUidAndSetGidPermissions.
Methods
impl HugePageMountSettings[src]
impl HugePageMountSettingspub fn mount(&self, sys_path: &SysPath) -> bool | [src] |
Creates the required mount point then mounts hugetlbfs.
Panics if mount already exists and is not a directory.
Returns true if the mount point was created or false if it already existed.
Trait Implementations
impl Eq for HugePageMountSettings[src]
impl Eq for HugePageMountSettingsimpl PartialOrd<HugePageMountSettings> for HugePageMountSettings[src]
impl PartialOrd<HugePageMountSettings> for HugePageMountSettingsfn partial_cmp(&self, other: &HugePageMountSettings) -> Option<Ordering> | [src] |
fn lt(&self, other: &HugePageMountSettings) -> bool | [src] |
fn le(&self, other: &HugePageMountSettings) -> bool | [src] |
fn gt(&self, other: &HugePageMountSettings) -> bool | [src] |
fn ge(&self, other: &HugePageMountSettings) -> bool | [src] |
impl Default for HugePageMountSettings[src]
impl Default for HugePageMountSettingsimpl PartialEq<HugePageMountSettings> for HugePageMountSettings[src]
impl PartialEq<HugePageMountSettings> for HugePageMountSettingsfn eq(&self, other: &HugePageMountSettings) -> bool | [src] |
fn ne(&self, other: &HugePageMountSettings) -> bool | [src] |
impl Clone for HugePageMountSettings[src]
impl Clone for HugePageMountSettingsfn clone(&self) -> HugePageMountSettings | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source. Read more
impl Ord for HugePageMountSettings[src]
impl Ord for HugePageMountSettingsfn cmp(&self, other: &HugePageMountSettings) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl Debug for HugePageMountSettings[src]
impl Debug for HugePageMountSettingsimpl Hash for HugePageMountSettings[src]
impl Hash for HugePageMountSettingsfn hash<__H: Hasher>(&self, state: &mut __H) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher]. Read more
impl Serialize for HugePageMountSettings[src]
impl Serialize for HugePageMountSettingsfn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for HugePageMountSettings where
HugePageMountSettings: Default, [src]
impl<'de> Deserialize<'de> for HugePageMountSettings where
HugePageMountSettings: Default, fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for HugePageMountSettings
impl Send for HugePageMountSettingsimpl Sync for HugePageMountSettings
impl Sync for HugePageMountSettingsBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,