Struct dpdk_unix::android_linux::mounts::HugePageMountSettings[][src]

pub struct HugePageMountSettings {
    pub mount_point: PathBuf,
    pub user_id: uid_t,
    pub group_id: gid_t,
    pub mode: mode_t,
    pub maximum_value_of_memory_in_bytes: Option<u64>,
    pub minimum_value_of_memory_in_bytes: Option<u64>,
    pub maximum_number_of_inodes: Option<u64>,
    pub mount_flags: MountFlags,
}

Settings for mounting a hugetlbfs file system.

Fields

Mount 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:-

User id (uid), eg 0.

Group id (gid), eg 0.

Permissions mode.

Debian uses 1770 for mode.

eg None.

eg None.

eg None.

eg MountFlags::DoNotUpdateAccessTimes | MountFlags::DoNotAllowProgramsToBeExecuted | MountFlags::DoNotHonourSetUidAndSetGidPermissions.

Methods

impl HugePageMountSettings
[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 Debug for HugePageMountSettings
[src]

Formats the value using the given formatter. Read more

impl Clone for HugePageMountSettings
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for HugePageMountSettings
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for HugePageMountSettings
[src]

impl PartialOrd for HugePageMountSettings
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for HugePageMountSettings
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for HugePageMountSettings
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for HugePageMountSettings
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations