get_page_state_name(9)
π get_page_state_name(9) β from the Kernel API Manual, bestie
Okay so real talk: this is get_page_state_name(9), straight out of the Kernel API Manual. It's a tiny little function with one job and honestly? It eats. π
β¨ NAME β¨
get_page_state_name β returns the name of a page state. That's it, that's the whole gig. π
πΈ SYNOPSIS πΈ
const char * get_page_state_name (enum vdo_page_buffer_state state );
π ARGUMENTS π
stateβ the page state you want described. Hand it over and it'll tell you what it's called, no cap.
π¦ DESCRIPTION π¦
So like, here's the vibe: if the page state is invalid, you don't get silence, you get a static string back β and lowkey the invalid state gets logged too. π So it's not just gonna ghost you, it's gonna tell on you to the log. Periodt.
β RETURN β
A pointer to a static page state name. Note the word static β that's the whole personality of the return value, bestie. π
π₯ SEE ALSO π₯
Kernel file ./drivers/md/dm-vdo/block-map.c β here's the whole friend group, fr fr:
Block map eras(9)initialize_info(9)allocate_cache_components(9)assert_on_cache_thread(9)update_counter(9)set_info_state(9)find_free_page(9)find_page(9)select_lru_page(9)complete_with_page(9)complete_waiter_with_error(9)complete_waiter_with_page(9)distribute_page_over_waitq(9)set_persistent_error(9)validate_completed_page(9)handle_load_error(9)page_is_loaded(9)handle_rebuild_read_error(9)launch_page_load(9)schedule_page_save(9)launch_page_save(9)completion_needs_page(9)allocate_free_page(9)discard_a_page(9)discard_page_if_needed(9)write_has_finished(9)handle_page_write_error(9)page_is_written_out(9)write_pages(9)vdo_release_page_completion(9)vdo_get_page(9)vdo_request_page_write(9)vdo_get_cached_page(9)vdo_invalidate_page_cache(9)get_tree_page_by_index(9)in_cyclic_range(9)is_not_older(9)add_to_dirty_lists(9)vdo_find_block_map_slot(9)make_forest(9)replace_forest(9)finish_cursor(9)continue_traversal(9)finish_traversal_load(9)traverse(9)launch_cursor(9)compute_boundary(9)vdo_traverse_forest(9)initialize_block_map_zone(9)clear_mapped_location(9)set_mapped_location(9)
π«Ά go read them all, iykyk β this function does not exist in a vacuum and its little friends are carrying the whole block map era situation.
kay bye bestie!! πβ¨ This one's living in ./drivers/md/dm-vdo, stamped October 2026, and yeah β it's still called get_page_state_name(9). Slay. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms