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
ADVERTISEMENT
Oct 18, 2010
How do I get the page pointer from a physical address?
View 1 Replies
View Related
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
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
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
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
Feb 1, 2010
I am running 9.10. I have a HP Photosmart 7350 printer. I have it installed and printing. But the issue I am dealing with is that it will print a full page and then print a blank page..then a full page..then a blank page. Actually they aren't completely blank..it shows half of "2 of 6" or whatever page it is on. Like it cuts that in half and prints the 2nd half of "2 of 6" onto a separate new page.
View 2 Replies
View Related
Jul 21, 2010
I need some direction on a small scripting question. I've been doing some development and storing the code on a network drive with multiple user access. My development is getting complex enough that it is time to set up a svn repo for it. I would like to set up a little script (if possible) that prints a message/reminder to whomever is accessing the code directory stating that the code is ultimately stored in svn and any changes need to be checked in, etc. Is there a way to have linux print a message to the screen based on a 'cd /specific_dir/' command? So far google is mum on the topic. Using Debian and bash shell.
View 5 Replies
View Related
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
Dec 6, 2008
I initially had a problem accessing the CUPS interface (see my other post) and got that resolved by adding the user "cupsys". Now, everything "looks" ok, and when I print a test page, it shows it as completed (in CUPS). However, the page never prints.
The printer is a Canon MP600 (using the canonmp600en.ppd file to configure it). Here's the output of my conf file.
Code:
# Show troubleshooting information in error_log.
LogLevel debug
[code]...
View 8 Replies
View Related
Sep 3, 2010
I am doing a test to get the memory used by apache`s apache2 processes. I used a script to get VmSize and VmRss from /proc/pid/status, and loop through that to get the sum of VmSize and VmRss of all the apache2 processes.
I found the VmSize (about 4GB) and VmRss (about 3.4GB) are much larger than the physical memory (1GB) when apache server was saturated. It was said because of the multi-counted libiraries size used by many processes simultaneously. Then , how to get the physical memory used by apache2 processes? Or how to get a more reasonable memory data?
View 7 Replies
View Related
Jun 5, 2011
I cannot print pdf files. I have tried using okular and xpdf. The documents display in the program, but print preview shows a blank page. The printer then sends out blank pages. I have tried printing on 2 different printers using usb cables. Using terminal to process the commands shows error:
Quote:
xxx@xxx:~$ xpdf
***** MediaBox = ll:0,0 ur:611.976,791.968
***** CropBox = ll:0,0 ur:611.976,791.968
***** Rotate = 0
Segmentation fault
Converting to .ps also is blank.
View 6 Replies
View Related
Feb 26, 2011
Not sure when CUPS started acting up. I have the latest 13.1 current software installed.The first page to print is always OK, but all succeeding pages are overwritten. The second page shows the first page on top of it, and the third shows the preceding pages on top of it - and so on. Has anyone else seen this problem?I guess the printer buffer is not getting flushed correctly. If my configurations were trashed in some way, I don't know where to look for a fix.
View 14 Replies
View Related
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
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
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
Mar 14, 2010
i was wondering if anyone could give some advice on how to write a bash script that would print processes using more than x mb or x% of the CPU?
View 2 Replies
View Related
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
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
Mar 6, 2011
I'm trying to get the end result to have the same format as this as well:
1 bin
2 daemon
67 erozner
[code]....
Where the numbers are the number of processes being run by the user (the name right next to it).if I input the command egrep myFile into the terminal, it should look for every line with the letter x in myFile, right?
View 5 Replies
View Related
Feb 15, 2011
I'm studying for the CompTIA Linux+ LC0-101 exam and I just need some clarification on where man pages are stored. I understand that this can be different depending on the distribution you are working on but so far I've read that man pages are stored in:
/usr/share/man
/usr/local/share/man
/usr/local/man
/usr/X11R6/man
While all these might be containers for man pages on various distributions I highly doubt that I will be given the option to make four selections during the test. So is there one or two of them that are seen as the universal man page directories?
View 3 Replies
View Related
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
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
Sep 12, 2010
I have to write a script that accepts two directory names (JIIT, JUIT) as positional parameters and checks which files are identical in both directories and files having same contents are also considered as identical in same directory. I tried using diff:
#both directories contain three files...file1, file2, file3
echo "Enter the directories:"
read d1
read d2
cd $d1
if diff file1.sh file2.sh > /dev/null
then echo same 1,2
else echo different
fi
if diff file1.sh file3.sh > /dev/null
then echo same 1,3
else echo different
fi
if diff file2.sh file3.sh > /dev/null
then echo same 3,2
else echo different
fi
cd ../
cd $d2
.....
I used the same code in the other directory for the three files. This is not running. I also want to know what to do when I need to compare files from different directories. i.e., JIIT, JUIT..
View 3 Replies
View Related
Oct 20, 2009
I have a lpt printer installed "hp officejet t65" when I print a file all the time on the top of the page appear the path of the file where is stored in my pc and and page 1of x. how to wipe off this information when printing a file.
View 1 Replies
View Related
Apr 30, 2011
I have a rather large image that I want to print onto several pages. How would you recommend doing this? I've been copying sections and printing like that using GIMP, and I have had limited success using presentation type software, but is there a faster way of doing this?
edit #1: Being able to Print this to PDF or PS would be great.
(Office computer runs slightly modified version of ubuntu 10.04-LTS 32bit)
View 4 Replies
View Related
Dec 7, 2009
I've configured a Xerox WorkCenter 7345 which is attached to the network. I can print to it from any application as well as via lp. The problem is that it only prints the first page of any job. I can tell it to print a specific page but if I do either All or within a range it will only do the first page
View 9 Replies
View Related
May 7, 2011
I just installed openSUSE 11.4 on my 2 home machines. My home network lies behind a nat router but I still use the external zone setting for my firewalls. In the past to enable network printing between the two computers I opened TCP and UDP port 631. Yast would then see the remote printer, set it up and all was good. This time Yast sees and sets up the remote printer as usual. When I print the test page nothing happens. Checking the cups admin page at localhost:631 on the host machine shows the printer is set up to share but nothing is in the print que. Printing works just fine on the host computer.
View 2 Replies
View Related
May 6, 2010
I know my driver works and that cups is up and running, because I can print off test pages to my heart's content, but I can't get any actual documents printed. I'm connected over the network at work to a Japanese NEC MultiWriter 3650n (it seems to be Japanese-only---I could find on drivers was in Japanese). It shows up in System=>Administration=>Printing. I set it as the default printer, and, as I said, it prints off test pages without a hitch. But whenever I open, say, a PDF and try to print it, the document appears to get sent, but never actually prints, and never shows up in the print queue (while the completed test pages do).
View 9 Replies
View Related
Oct 20, 2010
I installed my epson stylus tx420w through cups web interface. I used the PPD file provided by the driver recommended in linuxprinting.org.But when I try to print the test page (or anything else), nothing is printed. According to the diagnostics, the printer status is "Processing page 1...", but it won't go beyond that.I've already tested it, it's fine. But won't work in ubuntu. Don't know what's going on.
View 5 Replies
View Related