mmap question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	I'd like to mark some virtual address ranges as unusable in the
kernel, too hard to explain why. I'm using the following do_mmap call to
do this but it seems to die accessing address 0x100.

error = do_mmap(NULL, ARMPID_TASK_SIZE - (1 << 20), PAGE_SIZE, PROT_NONE,
                MAP_FIXED | MAP_PRIVATE, 0);

Is this the correct way to allocate an untouchable region of PAGE_SIZE at
(ARMPID_TASK_SIZE - (1 << 20))?

	Cheers, Adam

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux