Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
mmzone.c File Reference
#include <linux/stddef.h>
#include <linux/mm.h>
#include <linux/mmzone.h>

Go to the source code of this file.

Functions

struct pglist_datafirst_online_pgdat (void)
 
struct pglist_datanext_online_pgdat (struct pglist_data *pgdat)
 
struct zonenext_zone (struct zone *zone)
 
struct zonerefnext_zones_zonelist (struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes, struct zone **zone)
 
void lruvec_init (struct lruvec *lruvec)
 

Function Documentation

struct pglist_data* first_online_pgdat ( void  )
read

Definition at line 12 of file mmzone.c.

void lruvec_init ( struct lruvec lruvec)

Definition at line 90 of file mmzone.c.

struct pglist_data* next_online_pgdat ( struct pglist_data pgdat)
read

Definition at line 17 of file mmzone.c.

struct zone* next_zone ( struct zone zone)
read

Definition at line 29 of file mmzone.c.

struct zoneref* next_zones_zonelist ( struct zoneref z,
enum zone_type  highest_zoneidx,
nodemask_t nodes,
struct zone **  zone 
)
read

next_zones_zonelist - Returns the next zone at or below highest_zoneidx within the allowed nodemask using a cursor within a zonelist as a starting point - The cursor used as a starting point for the search - The zone index of the highest zone to return - An optional nodemask to filter the zonelist with - The first suitable zone found is returned via this parameter

This function returns the next zone at or below a given zone index that is within the allowed nodemask using a cursor as the starting point for the search. The zoneref returned is a cursor that represents the current zone being examined. It should be advanced by one before calling next_zones_zonelist again.

Definition at line 55 of file mmzone.c.