LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-16-2019, 03:24 PM   #1
redacted
LQ Newbie
 
Registered: Nov 2019
Posts: 4

Rep: Reputation: Disabled
Question pte_alloc_one() address argument


I have local changes to the 4.15 kernel which use the address argument to pte_alloc_one(). The address arg was otherwise unused and has been removed in 5.0.

The short explanation:

I want to allocate page table pages from memory that was reserved during boot, but only for memory allocated by mmap() when called with a specific MAP_ flag set. When do_mmap() sees that flag, it sets a flag in vm_flags. When pte_alloc_one() is called, if the special VM_ flag is set in the mm_struct and the address is between vm_start and vm_end, the page is allocated from the memory that was reserved at boot.

My question:

Without the address argument, how can I determine if the faulting address belongs to memory that was allocated by mmap() with the special MAP_ flag set?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP argument to pass to send self IP address in sftp packet send to establish con. vjdjsingh Linux - Networking 4 04-26-2014 02:35 AM
[SOLVED] iptables bad argument Bad argument `5060' treschen Linux - Newbie 3 11-10-2012 09:29 AM
[SOLVED] shell scripting: value of argument dissapears depending on argument order akelder Programming 5 03-21-2011 11:27 PM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration