On 9/2/26 20:00, Lorenzo Stoakes (ARM) wrote: > The memory character driver implements several mm-specific features and is > always compiled into the kernel, so move it to mm/ where it belongs. > > Among other things the driver implements /dev/mem which provides raw access > to physical memory, and /dev/zero which either allows mapping of a shmem > region (if mapped with MAP_SHARED) or, uniquely, anonymous memory (if > mapped MAP_PRIVATE). > > This change lays the foundations to allow MAP_PRIVATE-/dev/zero to be > mapped precisely the same as anonymous memory is mapped as currently it is > an edge case within mm. > > Also update a couple of comments that reference 'drivers/char/mem.c' to > reference 'mm/char-mem.c'. > > Signed-off-by: Lorenzo Stoakes (ARM) <[email protected]>
Yes, that's the way to go Acked-by: David Hildenbrand (Arm) <[email protected]> -- Cheers, David

