top | item 44570381 (no title) DmitryOlshansky | 7 months ago Think of page tables this is essentially a table of tables of tables. I also was meh on triple pointers until I found this use case. discuss order hn newest colejohnson66|7 months ago Yes, but the third level isn't a "triple pointer", but a pointer to the next level. A page table level isn't just a pointer-to-a-pointer but carries information. So a three-level table doesn't have `void***` in the top level, but `PageTableLevel2*`. rollcat|7 months ago As colejohnson66 noted. I would use typedef table, typedef page, etc. A void* is a pointer to the void. A page table is a table of pages.
colejohnson66|7 months ago Yes, but the third level isn't a "triple pointer", but a pointer to the next level. A page table level isn't just a pointer-to-a-pointer but carries information. So a three-level table doesn't have `void***` in the top level, but `PageTableLevel2*`.
rollcat|7 months ago As colejohnson66 noted. I would use typedef table, typedef page, etc. A void* is a pointer to the void. A page table is a table of pages.
colejohnson66|7 months ago
rollcat|7 months ago