I don't think we want a integer number, we want a "immobility" flag, which
says that any operations on that VMA have to be done on the whole area.
Then it's up to the device driver and the architecture-specific parts to
decide what kind of "immobile" blocks we can have.
For example, some hardware allows special memory regions that aren't
mapped by page tables at all, and don't even have to be powers of two in
size. I don't want the normal Linux memory management to know about them,
but I'd find it acceptable to have a "don't touch me" flag.
I would also suggest that the "don't touch me" flag can _only_ be done for
shared mappings. Because otherwise the VM layer gets very very confused at
fork() time.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/