/* * linux/mm/mmzone.c * * management codes for pgdats and zones. */ #include #include #include struct pglist_data *first_online_pgdat(void) { return NODE_DATA(first_online_node); } struct pglist_data *next_online_pgdat(struct pglist_data *pgdat) { int nid = next_online_node(pgdat->node_id); if (nid == MAX_NUMNODES) return NULL; return NODE_DATA(nid); } /* * next_zone - helper magic for for_each_zone() */ struct zone *next_zone(struct zone *zone) { pg_data_t *pgdat = zone->zone_pgdat; if (zone < pgdat->node_zones + MAX_NR_ZONES - 1) zone++; else { pgdat = next_online_pgdat(pgdat); if (pgdat) zone = pgdat->node_zones; else zone = NULL; } return zone; } ct name='h' onchange='this.form.submit();'> danvet's drm/ playgrounddanvet
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2023-06-09thread_info: move function declarations to linux/thread_info.hArnd Bergmann1-0/+5
2023-01-13cpuidle, sched: Remove instrumentation from TIF_{POLLING_NRFLAG,NEED_RESCHED}Peter Zijlstra1-1/+17
2022-03-22mm: uninline copy_overflow()Christophe Leroy1-1/+4
2021-12-01thread_info: Add helpers to snapshot thread flagsMark Rutland1-0/+14
2021-09-25compiler_types.h: Remove __compiletime_object_size()Kees Cook1-1/+1
2021-07-01kernel.h: split out panic and oops helpersAndy Shevchenko1-0/+1
2021-03-16kernel, fs: Introduce and use set_restart_fn() and arch_set_restart_data()Oleg Nesterov1-0/+13
2021-02-06entry: Ensure trap after single-step on system call returnGabriel Krisman Bertazi1-0/+2
2020-12-02kernel: Implement selective syscall userspace redirectionGabriel Krisman Bertazi1-0/+2
2020-11-25entry: Fix boot for !CONFIG_GENERIC_ENTRYGabriel Krisman Bertazi1-3/+5
2020-11-16audit: Migrate to use SYSCALL_WORK flagGabriel Krisman Bertazi1-0/+2
2020-11-16ptrace: Migrate TIF_SYSCALL_EMU to use SYSCALL_WORK flagGabriel Krisman Bertazi1-0/+2
2020-11-16ptrace: Migrate to use SYSCALL_TRACE flagGabriel Krisman Bertazi1-0/+2
2020-11-16tracepoints: Migrate to use SYSCALL_WORK flagGabriel Krisman Bertazi1-0/+2
2020-11-16seccomp: Migrate to use SYSCALL_WORK flagGabriel Krisman Bertazi1-0/+6
2020-11-16entry: Expose helpers to migrate TIF to SYSCALL_WORK flagsGabriel Krisman Bertazi1-0/+32
2019-12-04uaccess: disallow > INT_MAX copy sizesKees Cook1-0/+2
2019-09-25uaccess: add missing __must_check attributesKees Cook1-1/+1
2018-05-25thread_info: Add update_thread_flag() helpersDave Martin1-0/+11
2018-04-20fork: unconditionally clear stack on forkKees Cook1-5/+1
2017-11-15kmemcheck: stop using GFP_NOTRACK and SLAB_NOTRACKLevin, Alexander (Sasha Levin)1-3/+2
2017-11-02License cleanup: add SPDX GPL-2.0 license identifier to files with no licenseGreg Kroah-Hartman1-0/+1
2017-10-13kmemleak: clear stale pointers from task stacksKonstantin Khlebnikov1</