Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1685749
| From | Wei Wang <wei.w.wang@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v12 7/8] mm: export symbol of next_zone and first_online_pgdat |
| Date | 2017-07-12 14:50 +0200 |
| Message-ID | <u2pfA-8io-29@gated-at.bofh.it> (permalink) |
| References | <u2pfz-8io-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This patch enables for_each_zone()/for_each_populated_zone() to be
invoked by a kernel module.
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
---
mm/mmzone.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/mmzone.c b/mm/mmzone.c
index a51c0a6..08a2a3a 100644
--- a/mm/mmzone.c
+++ b/mm/mmzone.c
@@ -13,6 +13,7 @@ struct pglist_data *first_online_pgdat(void)
{
return NODE_DATA(first_online_node);
}
+EXPORT_SYMBOL_GPL(first_online_pgdat);
struct pglist_data *next_online_pgdat(struct pglist_data *pgdat)
{
@@ -41,6 +42,7 @@ struct zone *next_zone(struct zone *zone)
}
return zone;
}
+EXPORT_SYMBOL_GPL(next_zone);
static inline int zref_in_nodemask(struct zoneref *zref, nodemask_t *nodes)
{
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v12 7/8] mm: export symbol of next_zone and first_online_pgdat Wei Wang <wei.w.wang@intel.com> - 2017-07-12 14:50 +0200
Re: [PATCH v12 7/8] mm: export symbol of next_zone and first_online_pgdat "Michael S. Tsirkin" <mst@redhat.com> - 2017-07-13 02:20 +0200
Re: [virtio-dev] Re: [PATCH v12 7/8] mm: export symbol of next_zone and first_online_pgdat Wei Wang <wei.w.wang@intel.com> - 2017-07-13 10:40 +0200
Re: [PATCH v12 7/8] mm: export symbol of next_zone and first_online_pgdat Michal Hocko <mhocko@kernel.org> - 2017-07-14 14:40 +0200
csiph-web