drm_pagemap_cpages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_pagemap_cpages(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for drm_pagemap_cpages(9). The title is drm_pagemap_cpages, the manual name is Kernel API Manual, and the whole assignment is Count collected pages. No cap. πŸŽ€βœ¨


🌸 NAME 🌸

drm_pagemap_cpages β€” Count collected pages. That's the entire name section, bestie: it counts collected pages and it is not trying to be mysterious about it. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_pagemap_cpages (unsigned long *migrate_pfn , unsigned long
       npages );

okay so it returns an int, and it takes unsigned long *migrate_pfn plus unsigned long npages. Slay. πŸ’–

πŸŽ€ ARGUMENTS πŸŽ€

  • migrate_pfn β€” array of migrate_pfn entries to account. It's giving "here are the entries, pls account for them." 🫢
  • npages β€” number of entries in migrate_pfn. Basically the entry count, bestie. πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

Compute the total number of minimum-sized pages represented by the collected entries in migrate_pfn. The total is derived from the order encoded in each entry. That's the whole bit β€” no extra lore, no secret extra parameters. πŸ’…

⭐ RETURN ⭐

Total number of minimum-sized pages. That's what you get back, and it's an int per the synopsis. πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

okay so the related-pages list has main character energy and we are not skipping it. The kernel file is ./drivers/gpu/drm/drm_pagemap.c, and here are all the references:


and that's the footer, bestie: source ./drivers/gpu/drm, date October 2026, and page drm_pagemap_cpages(9) from the Kernel API Manual. bye, go count those collected pages πŸ’–πŸŒˆβœ¨

πŸ“¦ where this page comes from