Programming :: Get The Page Pointer From A Physical Address?

Oct 18, 2010

How do I get the page pointer from a physical address?

View 1 Replies


ADVERTISEMENT

Programming :: Print Physical Address Of Page Directories For All Processes?

Apr 4, 2011

How to printing physical address of page directories for all processes?

#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>

[code]....

View 1 Replies View Related

Programming :: Physical Versus Virtual Mac Address And Mac Address From NIC's Firmware?

Apr 6, 2011

I need a small shell based program that prints the mac address of physical ethernet adapter from it's firmware. I need this utility for license generation and appliance activation. I have tried several example but none of them is flawless, The easiest method I have found is to parse the output of "ifconfig" command but it has also some drawbacks.

1. Firstly program should differentiate between physical and virtual adapters. Physical means installed on board(wired or wireless) or installed additionally. Virtual adapters are those created by VPN or created by virtualization apps such as VirtualBox/VMWare etc. I am not interested in virtual ones.

2. In case of more them one physical adapters(wired and wireless), it should print the mac address and description(name & vendor) of both/all adapters.

3. If media is disconnected then also it should be able to read the mac address and description(name, vendor) of card.

4. This one is bit complex. I know that 'ethtool' can show you the universal mac address but it's limited to use only 2 types of drivers and won't work in all cases.

View 2 Replies View Related

Programming :: Translate Virtual Address To Physical Address In Application?

Nov 18, 2009

I want to translate the virtual address to physical address in linux C application, how to do that?

View 1 Replies View Related

Programming :: Access At Physical Address - I/O Address In My Map Memory?

Dec 17, 2008

When I try to access at physical address (0xD0000), we known that it is necessary to convert physical address to virtual address using function IOREMAP(0xD0000, 1024) and return me 0xC00D0000.

Now our doubt is when I have a board with I/O in address 0x150, is it necessary to convert this address to other virtual address??? or with inb(0x150) return me state of I/O in this address? How can I known where is this I/O address in my map memory?

View 7 Replies View Related

Programming :: Access The Address Of A Character Pointer?

Jul 12, 2010

i was trying to access the address of the character pointer it gives me the values stored in the variable.

Code: #include<iostream>
using namespace std;
int main()
{
char *i;

[Code]....

why is my code not giving the address of the variable i when it is a character pointer.

View 2 Replies View Related

Programming :: Assign Absolute Address To Pointer

Dec 20, 2010

I want to assign an address location to a pointer and wanted to display the value at that memory location.I wrote a small program for this and it is like this : (i am using gcc 4.4 compiler)

# include "stdio.h"
int main()
{
unsigned int *a;
a=(unsigned int *)0x3f8;
printf("%u",*a);
return 0;
}

But it is giving Segmentation fault

View 14 Replies View Related

Programming :: Find Physical Address Of Memory Provided By Kmalloc

Oct 22, 2009

I allocated a chunk of memory using kmalloc in a Device Driver. Kmalloc provides a pointer to the allocated memory. This is one of my first few drivers.

I assume that the address returned is a Virtual address. I need to find the physical address of the memory location. I am working on an Intel 64 bit Fedora machine. I used the virt_to_phys() routine present in <asm/io_64.h>. I found that this routine returns an unsigned long value (32 bit) instead of an unsigned long long value (64 bit). Moreover, it seems that it simply returns the address - OFFSET instead of extracting the value in the page tables.

So is there any function / system call in Linux which will allow me to see the actual physical address on the Intel 64 arch.

View 3 Replies View Related

General :: Virtual Memory Address To Physical Address?

Apr 13, 2010

How can I get the physical address corresponding to a virtual address in linux by using /proc file system

View 1 Replies View Related

General :: Use Where Save For The Physical Address Going Towards The MAC Address

Jul 19, 2010

im REALLY new with linux and ive downloaded and installed Ubuntu...now heres the question.how do i set up WLAN internet use? ive tried using ipconfig/all on windows command but im not sure which info to use where save for the Physical Address going towards the MAC Address info

View 14 Replies View Related

Programming :: Pointer To Pointer Segmentation Fault?

Jun 27, 2009

I have been googling trying to fix this ... basicly I have a (int **) variable, and when I try to pass a (int) value to a specific position, I have seg.fault.Resuming what I have is:

int ** p;
p[0][0] = 1; //segmentation fault

View 7 Replies View Related

General :: How To Read/write Physical Address

May 17, 2010

One of the tasks I want to do is to read/write from/to any physical address. My question is how do I get a physical address on my Linux desktop. I was thinking of using some utility to dump my BIOS settings, and modify a "not so important" memory address there? Is this possible. Otherwise is there any other physical address I can read/write

View 3 Replies View Related

Software :: Physical And Virtual Address Differences?

Jul 15, 2010

I am interested to know memory layout in linux os.What are the differences between physical address and virtual address?

View 1 Replies View Related

Ubuntu Networking :: Physical Address For Ethernet Adapter?

Aug 26, 2010

I've just arrived at uni and to set up my wifi apparently I need my "media access control which is listed as the phsyical address for ethernet adaptor local area connection." on windows you can find it by using the command ipconfig /all but that didn't work when i put it into terminal.

View 1 Replies View Related

General :: Virtual Address To Physical Memory Access ?

Feb 21, 2010

A process is trying one access to memory, for example through an array (ex.: vect[0]=123. What happens?

Here below what I guess but I'm not sure and accept any comment (please, distinguish between "the system" and "the CPU" in case).

Let's suppose swapping to disk disbled.

We have two scenarios: without and with cache.

If no cache is present in the system:
1. The CPU must discover the phys addr of vect[0] virtual addr. To do that, has to read from 3 (or 2 depending on the system?) pages tables, stored in memory as well.
2. The CPU writes to the final address.

These mean 4 memory accesses.

If cache is present:
1. Like above but, if the pages tables are in cache, we have 3 accesses to that.
2. If the req. page is not in cache, it's reads from ram and transferred to it. Afterwards, cache is written.
In the best case we have 4 cache accesses.

View 2 Replies View Related

Programming :: Executing Commands From Web Page And Outputing It Back To The Web Page?

May 8, 2009

wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !For example :if i send a query "ls"it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !

View 8 Replies View Related

General :: Mapping Kernel Virtual Address Space To Physical Memory Zones?

Nov 4, 2010

As i undertsand - out of 1GB of the virtual Address space for Kernel from 3GB to 4GB of the process address space, Kernel image (code, data, bss, stack, heap) resides staring @0x0 address. Vmalloc area starts either at the end of Physical ram size or at 896M. This 896M cap is mandated to ensure that minimum of 128MB is reserved as vmalloc_reserve for vmalloc,kmap etc.

Is the understanding correct? Now trying to map Physical Zones into this 1GB address space

Initial 16MB is mapped to ZONE_DMA
16MB - 896MB is mapped to ZONE_NORMAL
896MB - 1024MB is mapped to ZONE_HIGHMEM

Does this mean that Kernel image is residing in ZONE_DMA area? Any call to vmalloc() in kernel code will return address beyond 896M? insmod of any LKM will internally invoke vmalloc() to obtain contiguous area - where will this code physically located along with rest of kernel code in ZONE_DMA or in ZONE_HIGHMEM?

View 1 Replies View Related

Ubuntu One :: .asp Page - Wouldn't Accept Email Address?

Dec 20, 2010

tried to sign up but it felt like a badly coded .asp page, wouldn't accept my email address? Same address hand typed both boxes? tried it quite a few times, very unubuntu. still explanation marks next to each email address?

View 1 Replies View Related

General :: Apache Default Page Not Opening Using Ip Address

Oct 25, 2009

i have installed fedora 11..when iam opening my apache default test page using
http://localhost its opening but when iam trying to open the same using my ip address i.e. http://172.31.73.4 its not opening..instead iam gettin an error message like this in firefox

ERROR
The requested URL could not be retrieved....While trying to retrieve the URL: http://172.31.73.4/can anyone tell me whats the problem because till now i was using fedora 8 and while using apache i never got this sort of problem..

View 1 Replies View Related

Programming :: Pass Ip Address, Port Address And Some Parameters From Command Line?

Apr 1, 2011

I want to pass ip address,port address and some parameters from command line using python script.The ip address and port address for establishing socket connection and remaining parameters to execute different connection.

View 1 Replies View Related

Programming :: Shared Memory Address Area In Process Address Space?

Feb 21, 2011

if i attach a shared memory to my process whch part of the address space it will add(like stack, heap, data, code...).

View 3 Replies View Related

Programming :: Two Text Consoles On The Same Physical One?

Jun 27, 2011

How large would a program have to be to open two text consoles on the same physycal console? And what would the general outline be?

View 9 Replies View Related

Programming :: C++ Check If Pointer Is Deleted?

Apr 24, 2011

Is it possible to check if a pointer is deleted in C++ (using GDB)? For example:

Code:
a = new Thing();
b = a;
delete a;

// If all I have is the variable "b", how can I tell if it was deleted?

View 14 Replies View Related

Programming :: C - Malloc For A Void Pointer?

Mar 20, 2010

So far I have this:

Code:
int mm_init (mm_t *MM, int hm, int sz) {
int i;

[code]...

View 4 Replies View Related

Programming :: Comparison Between Pointer And Integer

Jul 6, 2010

I'm trying to write a simple program that lists a menu and then asks you for your decision, and you can answer with a number or the name. However, I don't know how to add the second options (name).

View 14 Replies View Related

Programming :: Null Pointer In Bash?

May 19, 2011

#!/bin/bash
sed -n 8p file.txt

returns the 8th line to the StdOut.

If I assign the value to the variable line = $(sed -n 8p file.txt)

and now print it out with echo

echo $line

the line would be printed.

But what if the file has only 4 lines. What value would be assigned to the variable line?

I want to know that because I want to only print it if the value is "something", that is not null.

In Java for example I would do it like this...
String line = "";
line = reader.readLine(); // or anything else..
if(line!=null){
System.out.println(line);
}

How would I check if the value is not "null"(I don't know if bash knows null)

View 13 Replies View Related

Programming :: Pointer To Array Of Integers?

Aug 23, 2009

Code:
#include <stdio.h>
int main ()

[code]...

View 7 Replies View Related

Programming :: Pointer Vs Array Declaration?

Jul 26, 2010

Whats the practical diffrens between these declarations in c?

char *a_str = "hello";
char a_str[] = "hello";

View 4 Replies View Related

Programming :: Pointer As Function Return Doubt?

Jul 15, 2010

I'm getting some information about C language and this session of a C book (follow the above link) is using a bad example for me. When I'm trying this example of function returning a pointer, my compiler is stating a warning that I return a pointer to a local variable. I realized that it is error prone after all this variable may be override before the function has done his execution. And the author is fooling me saying that this example is "perfectly safe". I'm wrong? There is something that I don't got yet? Sorry but this site is preventing me to post the link of book cause I'm a newbie, so a need the hack it. Just strip out the question signs:

{LINK}
?w?w?w
?cs.cf.ac.uk?

[code]....

View 6 Replies View Related

Programming :: C++ Find Size Of Array, Through Pointer?

Mar 10, 2009

i am trying to find the size of an array, not by using the array as a parameter to "sizeof", but by using a pointer -pointing to the array- as a parameter. How do i do this?I use a 32-bit PC.Here's:

Code:
#include <string>
#include <iostream>

[code]...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved