How to convert the virtual to physical in linux kernel

Assignment Help Operating System
Reference no: EM132022657

Question: Creating a /proc entry

Create a pseudo file /proc/mem_map by using a separate Linux kernel module (not statically linked into the kernel. From here on, all the assignments are expected to be Linux Modules).

As you all know by now, mem_map is a global array that consists of all the struct page entries.

It should display the following information...

1. Virtual Address of mem_map global variable in the Linux kernel. In short, contents of the variable.

2. Physical Address of mem_map location. Convert the above virtual address to physical and print it

3. Print the number of struct page entries that are available as part of the mem_map

Goals: 1. You will learn how the /proc entries are created

2. Learn how to convert the virtual to physical and vice versa in Linux kernel

3. Ability to look at and if necessary understand the struct page entries

Submission: 1. Module code and associated Makefile

2. Readme.txt - Details of how to build, execute and what to expect

Notes: In some systems, mem_map variable is not exported or used. In such scenarios, please use pfn_to_page(0) in place of mem_map. Meaning and use of both are exactly same.

Reference no: EM132022657

Questions Cloud

What function in excel returns the current time : Please find the Excel function that performs these tasks. Write the function and describe the inputs to the function. What function in Excel returns the current
What is the contribution margin ratio for segar company : Segar Company budgets sales of $3,200,000, fixed costs of $ 700,000, and variable costs of $2,240,000. What is the contribution margin ratio for Segar Company?
Project performance measures : You were asked to revise your discounted cash flow analysis for a particular project assuming a higher required return.
What is liam asset allocation : What is Liam's asset allocation? Is it appropriate, and why?
How to convert the virtual to physical in linux kernel : Learn how to convert the virtual to physical and vice versa in Linux kernel. Ability to look at and if necessary understand the struct page entries.
What is the significance of us equity risk premiums : What is the significance of US equity risk premiums as a method of comparison with other countries?
What is credit risk : What is credit risk? Explain how finance companies and depository institutions might differ in managing credit risk.
Identify the principal and interest payment of each month : Construct an amortization schedule for the $400,000 loan with a 3.25% interest rate compounded monthly. The loan will be paid back in 15 years making monthly
Prepare an initial researched and cited discussion response : Prepare an initial researched and cited discussion response early in the week about the topic you choose and follow with at least two researched.

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd