#author("2025-10-27T11:58:43+09:00","default:guest","guest") #author("2025-10-27T11:59:46+09:00","default:guest","guest") *参照元 [#ke57242a] #backlinks *説明 [#n2f653cc] -パス: [[linux-5.15/]] -パス: [[linux-5.15/include/linux/mmzone.h]] -FIXME: これは何? --説明 -指定されたノードのzonelistを返す。 **引数 [#m73dfde3] -int nid --ノードID -gfp_t flags --GFPフラグ --[[linux-5.15/gfp_t]] **返り値 [#q954a6c8] -struct zonelist * -- --zonelist --[[linux-5.15/zonelist]] **参考 [#za2b4ee6] *実装 [#d45368f7] /* * We get the zone list from the current node and the gfp_mask. * This zone list contains a maximum of MAX_NUMNODES*MAX_NR_ZONES zones. * There are two zonelists per node, one for all zones with memory and * one containing just zones from the node the zonelist belongs to. * * For the case of non-NUMA systems the NODE_DATA() gets optimized to * &contig_page_data at compile-time. */ static inline struct zonelist *node_zonelist(int nid, gfp_t flags) { return NODE_DATA(nid)->node_zonelists + gfp_zonelist(flags); } -指定されたノードのゾーンリストを返す。 --現状、zonelistsは2要素しかない。GFPのGFP_THISNODEフラグによって[0]:FALLBACKか[1]:NOFALLBACKのどちらかが選択される。 --[[linux-5.15/NODE_DATA()]] --[[linux-5.15/gfp_zonelist()]] *コメント [#l50692f5]