The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9 0ktalmagik SUN Solaris 4 02-03-2009 09:37 AM
How to check physical memory jeelans SUN Solaris 5 07-20-2006 09:56 PM
vmstat -P (physical memory) gfhgfnhhn UNIX for Advanced & Expert Users 0 03-21-2006 08:40 AM
get physical and virtual memory tads98 Shell Programming and Scripting 7 08-05-2005 03:00 AM
physical memory cchien UNIX for Dummies Questions & Answers 1 08-21-2003 09:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-15-2002
Alex_T Alex_T is offline
Registered User
  
 

Join Date: Feb 2002
Location: Russia, Moskow
Posts: 5
Question Physical Memory

Hi,
My problem is next....
How can I work with physical memory in the Unix FreeBSD 2.2 or hight?
What is the "mem" & "kmem" drivers?

P.S./ writing device driver for UNIX FreeBSD 2.2
  #2 (permalink)  
Old 02-15-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
The mem driver does let you access physical memory. You can seek and read (or write) to any physical address.

The kmem driver gives you access to the kernel's virtual address space.

But both are intended to be used from userland. If, for some reason, you want to do this stuff inside a driver, you should examine the code for the kmem and mem pseudodrivers to see how they work on your system. Then you should do the same thing in your driver.
  #3 (permalink)  
Old 02-28-2002
Alex_T Alex_T is offline
Registered User
  
 

Join Date: Feb 2002
Location: Russia, Moskow
Posts: 5
Ok
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0