[dpdk-dev] [PATCH v5 1/3] eal/linux: make hugetlbfs analysis reusable
Thomas Monjalon
thomas at monjalon.net
Tue Oct 5 19:36:21 CEST 2021
21/09/2021 10:16, dkozlyuk at oss.nvidia.com:
> 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>
First version was sent in July.
Anatoly, please are you available to review?
> +++ b/lib/eal/linux/eal_hugepage_info.h
> @@ -0,0 +1,39 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright 2021 NVIDIA CORPORATION & AFFILIATES.
Please use this exact format:
Copyright (c) 2021 NVIDIA Corporation & Affiliates
More information about the dev
mailing list