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 8333867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:09:52+00:00 2026-06-09T03:09:52+00:00

I am studying linux device driver and found that number of pages are equal

  • 0

I am studying linux device driver and found that number of pages are equal to number of frame.
Each page map to each frame.It says like whenever program needs memory it will allocate pages.

But in OS books i found like virtual address divides into pages and these pages are loaded into frames.then how can number of pages be equal to frame?

which of above is correct? how linux store information in page table regarding virtual,page,frame mapping?

I am totally confused.

  • 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-06-09T03:09:53+00:00Added an answer on June 9, 2026 at 3:09 am

    Physical pages are called page frames (you can call them frames). The term page is reserved for pages in virtual memory.

    The virtual memory is divided into chunks of equal size by the kernel. Physical memory is also divided into pages (page frames) of the same size.

    For example if we have 4GB of RAM, on 32 bits architecture, this means : 1048576 page frames of size 4KB

    Let’s continue,

    for each page frame (physical page) the kernel maintain a structure struct page. This structure is defined in linux/mm_types.h(https://github.com/torvalds/linux/blob/master/include/linux/mm_types.h), this structure contain a member named mapping (struct address_space *mapping) which specifies the address space in which a page frame is located. There also a member named index which represent the offset inside this mapping.

    All struct pages are kept in global mem_map array this array is used by the kernel to know all the associations between virtual and physical memory.

    Finally, to convert a virtual address to a physical one the kernel use the macro virt_to_page() defined in asm-i386/page.h which point to pfn_to_page(https://github.com/torvalds/linux/blob/master/include/asm-generic/memory_model.h).

    Before an example, let’s see the layout of an address in 32 bits architecture

    | 10 bits – Directory | 10 bits – Page table | 12 bits – Offset |

    Let’s see an example of translating memory virtual address to physical one:

    http://img11.imageshack.us/img11/9426/pagingexample.png

    Hope this help.

    Regards.

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

Sidebar

Related Questions

i studying TDateTime functions and procedure, but not found something that allow me to
I'm studying on writing embedded linux driver, and decided to fire a few GPIOs
I am now studying about the implementation of page table of Linux 2.6.38.8. In
I am studying the book Beginning Linux Programming 4th ed and chapter 2 is
While studying the Collection API, we find that some methods ( add , remove
While studying the book Introduction to Algorithms by Cormen, I found a strange thing.
I'm studying the linux-3.2.9 kernel, and in sched_rt.c function pick_next_highest_task_rt() there is a for
I am studying the boot process in Linux. I am looking through this html
I am studying the boot process in Linux. I came across this sentence "RAM
I'm studying the mechanism of module loading inside the linux kernel, and I'm stuck

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.