I have a project running on Linux 5.10
Now, I want it run on Linux 6.6
While compiling there are two errors :
struct mm_struct’ has no member named ‘mmap’;
and
struct vm_area_struct’ has no member named ‘vm_next’;
I checked the head file <mm_types.h>.
But I don’t understand the new definitions of mm_struct and vm_area_struct well
I just want to call them in another file like :
struct vm_area_struct *vma = mm->mmap;
vma = vma->vm_next;
how should i fix my code?
New contributor
Askemi Wang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.