[go: up one dir, main page]

|
|
Log in / Subscribe / Register

Tracking pages from get_user_pages()

Tracking pages from get_user_pages()

Posted Apr 18, 2019 18:28 UTC (Thu) by willy (subscriber, #9762)
In reply to: Tracking pages from get_user_pages() by stevie-oh
Parent article: Tracking pages from get_user_pages()

PFNs are most definitely not uintptr_t. For example, on a 32-bit platform with PAE, PFNs can use up to 28 bits, letting us support up to 1TB of memory with a 4kB page size. They really are just an integer.


to post comments

Tracking pages from get_user_pages()

Posted Apr 18, 2019 19:35 UTC (Thu) by rweikusat2 (subscriber, #117920) [Link]

uintptr_t is just an integer as well. If it exists, it's a typedef name for an unsigned integer type which is large enough to store a pointer value. As page frame numbers are smaller than pointers due to coarser granularity, that's obviously not a property which would be needed here but it wouldn't do any harm, either.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds