Pagination in syscalls?
Pagination in syscalls?
Posted Nov 3, 2025 16:55 UTC (Mon) by johill (subscriber, #25196)In reply to: Pagination in syscalls? by corbet
Parent article: Namespace reference counting and listns()
Every netlink dump also has pagination.
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.
