[dpdk-dev] [PATCH v5 1/3] eal/linux: make hugetlbfs analysis reusable

John Levon john.levon at nutanix.com
Wed Sep 22 15:52:39 CEST 2021


On Tue, Sep 21, 2021 at 11:16:30AM +0300, dkozlyuk at nvidia.com wrote:

> From: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> 
> get_hugepage_dir() searched for a hugetlbfs mount with a given page size
> using handcraft parsing of /proc/mounts and mixing traversal logic with
> selecting the needed entry. Separate code to enumerate hugetlbfs mounts
> to eal_hugepage_mount_walk() taking a callback that can inspect already
> parsed entries. Use mntent(3) API for parsing. This allows to reuse
> enumeration logic in subsequent patches.
> 
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Reviewed-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>

Reviewed-by: John Levon <john.levon at nutanix.com>

regards
john


More information about the dev mailing list