Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6851199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:13:07+00:00 2026-05-27T01:13:07+00:00

I found alloc_pages() is called by alloc_fresh_huge_page_node() to allocate one huge page, just want

  • 0

I found alloc_pages() is called by alloc_fresh_huge_page_node() to allocate one huge page, just want to confirm if it allocates one physical huge page and also builds memory mapping?

static struct page *alloc_fresh_huge_page_node(struct hstate *h, int nid)
{
    struct page *page;

    if (h->order >= MAX_ORDER)
        return NULL;

    page = alloc_pages_exact_node(nid,
        htlb_alloc_mask|__GFP_COMP|__GFP_THISNODE|
                        __GFP_REPEAT|__GFP_NOWARN,
            huge_page_order(h));
    if (page) {
        if (arch_prepare_hugepage(page)) {
            __free_pages(page, huge_page_order(h));
            return NULL;
        }
        prep_new_huge_page(h, page, nid);
    }

    return page;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:13:07+00:00Added an answer on May 27, 2026 at 1:13 am

    Alloc_pages() allocates whichever possible page size you use it for. 2MB is one option (typically when using PAE), the others being, on the 2.6 kernel, 4kb and 4MB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just found out that the Page Controller is being used by default when
found this little code snippet that seems to do what i want, but im
I am building an HTML5 single page app, and I want to allow the
I've found a unit with functions that allow to Load a DLL directly from
Often, when searching for answers, I have found that certain websites will allow you
Found this while reading the Neo4j manual, specifically here , I found the sentence:
Found related questions but not the exact variant so I am posting a very
Found This: tyty stack, Social Icons not working with Infinite Scrolling on Wordpress I'm
FOUND THE ANSWER MYSELF, see below... I'd like to have a very simple user
Found this Multimap containing pairs? , but it is not much help How would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.