Pagination in syscalls?
Pagination in syscalls?
Posted Nov 3, 2025 16:34 UTC (Mon) by hDF (subscriber, #121224)Parent article: Namespace reference counting and listns()
Posted Nov 3, 2025 16:44 UTC (Mon)
by corbet (editor, #1)
[Link] (1 responses)
Posted Nov 3, 2025 16:55 UTC (Mon)
by johill (subscriber, #25196)
[Link]
In netlink, to solve this, a "generation" number is included in each partial dump (and updated by other code if the list changes.) If it changed anywhere while you were dumping, you know the list might be incomplete or list stale objects. In many cases, this doesn't really matter since an object might as well disappear just _after_ you created the list, etc.
getdents() has had pagination since forever; it's pretty much necessary for any interface that could return an arbitrary amount of data.
Pagination in syscalls?
Pagination in syscalls?
