Fleshing out memory descriptors
Fleshing out memory descriptors
Posted May 27, 2024 16:09 UTC (Mon) by willy (subscriber, #9762)In reply to: Fleshing out memory descriptors by willy
Parent article: Fleshing out memory descriptors
There is not. I do not propose ever allocating a struct buddy.
That's clear in the wiki pages, I hope. And if it is, then I'll remedy that.
Posted May 27, 2024 18:29 UTC (Mon)
by pbonzini (subscriber, #60935)
[Link] (1 responses)
Would it make sense to tackle the "private" field _last_ (not first) by sticking it in the second word of struct page, that is:
Posted May 27, 2024 18:56 UTC (Mon)
by willy (subscriber, #9762)
[Link]
It is clearer in the wiki, yes:
Fleshing out memory descriptors
struct page {
union {
unsigned long memdesc;
struct buddy buddy;
};
};
struct page {
unsigned long memdesc_or_next;
unsigned long private_or_prev;
};
?
Fleshing out memory descriptors