Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vtop(9r) [osf1 man page]

vtop(9r)																  vtop(9r)

NAME
vtop - General: Converts any virtual address to a physical address SYNOPSIS
vm_offset_t vtop( struct proc *proc_p, vm_offset_t virt_addr ); ARGUMENTS
Specifies a pointer to a proc structure. The vtop routine uses the proc structure pointer to obtain the pmap. Specifies the virtual address that vtop converts to a physical address. DESCRIPTION
The vtop routine converts a specified virtual address to a physical address. CAUTIONS
The vtop routine panics and displays the following message on the console terminal if the proc structure pointer you pass is NULL and the virtual address is in user space: vtop: user address passed with null proc pointer RETURN VALUES
Upon successful completion, vtop returns the physical address associated with the specified virtual address. vtop(9r)

Check Out this Related Man Page

KSEG_TO_PHYS(9r)														  KSEG_TO_PHYS(9r)

NAME
KSEG_TO_PHYS - General: Converts a kernel-unmapped virtual address to a physical address SYNOPSIS
vm_offset_t KSEG_TO_PHYS( vm_offset_t addr ); ARGUMENTS
Specifies the buffer virtual address to convert to a physical address. DESCRIPTION
The KSEG_TO_PHYS routine converts a kernel-unmapped virtual address to a kernel physical address. Device drivers can use this physical address in DMA operations. Prior to calling KSEG_TO_PHYS, device driver writers often call one of the following routines to determine whether the address passed is a virtual address in the addressed kernel segment: IS_KSEG_VA Determines if the specified address is located in the kernel-unmapped address space. IS_SEG0_VA Determines if the specified address is located in the user-mapped address space. IS_SEG1_VA Determines if the specified address is located in the kernel-mapped address space. RETURN VALUES
Upon successful completion, KSEG_TO_PHYS returns the physical address. EXAMPLE
The following code fragment shows a call to KSEG_TO_PHYS: . . . caddr_t virt_addr; [1] unsigned phys_addr; [2] . . . if(IS_KSEG_VA(virt_addr)) { [3] phys_addr = KSEG_TO_PHYS(virt_addr); [4] . . . Declares a variable to store the user buffer's virtual address. Declares a variable to store the physical address returned by KSEG_TO_PHYS. Before calling KSEG_TO_PHYS, calls IS_KSEG_VA to determine if the virtual address is from the kernel-unmapped address space. If the virtual address is from the kernel-unmapped address space, then calls KSEG_TO_PHYS to convert the address to a corresponding physi- cal address. SEE ALSO
Routines: IS_KSEG_VA(9r), PHYS_TO_KSEG(9r) KSEG_TO_PHYS(9r)
Man Page

12 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Concatenating and appending string based on specific pattern match

Input #GEO-1-type-1-fwd-Initial 890 1519 OPKHIJEFVTEFVHIJEFVOPKHIJTOPKEFVHIJTEFVOPKOPKHIJHIJHIJTTOPKHIJHIJEFVEFVOPKHIJOPKHIJOPKEFVEFVOPKHIJHIJEFVHIJHIJEFVTHIJOPKOPKTEFVEFVEFVOPKHIJOPKOPKHIJTTEFVEFVTEFV #GEO-1-type-2-fwd-Terminal 1572 2030... (7 Replies)
Discussion started by: patrick87
7 Replies

2. Shell Programming and Scripting

Renaming all header to specific header pattern

Input #HAC0253 EFVHIJHIJEFVTHIJOPKOPKTEFVEFVEFVOPKHIJOPKOPKHIJTTEFVEFVTEFV #BASFS12 EFVEFVHIJEFVEFVTOPKEFVOPKTHIJTTHIJOPK #ACG5115 TEFVEFVOIJEFVHIJHIJOPKOPKHIJHIJTTEFVEFVOPKTTEFVEFVOPKHIJOPKOPKOPK #ECG5114 IJTOPKHIJEFVOEFVEFVOPKTTEFVEFVOPKHIJOPKOPKOPK . . Output (5 Replies)
Discussion started by: patrick87
5 Replies

3. Shell Programming and Scripting

generate PDF document on UNIX (not with GUI) from SQL*Plus output

Hi I wish to generate from CSV output of SQL*Plus a PDF. I use a Solaris 10 box. Which Open Source software can do that on CLI? (4 Replies)
Discussion started by: slashdotweenie
4 Replies

4. Shell Programming and Scripting

Please help me to finish this scripts

Hi All, Can anyone help me to finish the scripts. this scripts is this scripts will run on crontab in every 4 minutes to get the newest router interface status. I would like to add a function to count the router interface flapping, if more than 2 times in 20 minutes (scripts run 5 times)... (1 Reply)
Discussion started by: momo0617
1 Replies

5. AIX

NIM client boot problem

Hi all, I have created VIO Server which serves 3 lpars. All of them are on VLAN ID 50. From one lpar I installed and set up NIM master server called testAIX1. I have created client and allocated resources to it: testAIX1:/ > lsnim -l test_lpar test_lpar: class = machines ... (4 Replies)
Discussion started by: phobus
4 Replies

6. AIX

CD-ROM issue with PowerVM IVM VIOS

I am facing problems in moving CD-ROM from one lpar to another. CDROM can be seen on the POWERVM (IVM) server , but through the web-access if I move it ( assign it ) to LPAR it will be assigned. I run cfgmgr , and the cdrom does not show up in the LPAR. I firmly believe this is the reason why I... (2 Replies)
Discussion started by: filosophizer
2 Replies

7. AIX

Unable to remove VIOS disk

Hello, I am unable to remove the disk, whenever i remove the disk using rmdev -dl hdisk2 or rmdev -Rdl hdisk2 the disk appears back when i run cfgmgr but unable to create any volume group on it # mkvg -y foovg hdisk2 0516-008 /usr/sbin/mkvg: LVM system call returned an unknown ... (20 Replies)
Discussion started by: filosophizer
20 Replies

8. AIX

Power8 S812L:HMC issue and ...

Hi, I just bought POWER 8 ESERVER S812L from Ebay. There is no AIX on it. I am trying to install RedHat on this box But it does not recognize the hard drive and Ethernet card. I am very newbie with IBM ... please help or hints me please ... 1. can't access to HMC ports, thought it's... (21 Replies)
Discussion started by: lilyn
21 Replies

9. Shell Programming and Scripting

Shell Script with following awk command pls help

Hi I want to create a shell script with the following awk command & also get the filenames in output. awk '/<catetcsecuretty0>/ {p=1} /<catvarlogmessages0>/ {p=0} p' *.xml As there will be multiple outputs related to many xml files I cannot identify which output belongs to which file ... (5 Replies)
Discussion started by: sharp488
5 Replies

10. UNIX for Advanced & Expert Users

How to add virtual tape?

Dear All, I have some lpar that i want to connect with DAT tape drive. how can i add to the lpar, so can access the tape drive here is the detail of my lpar: root@erpqa:/>uname -L 2 erpqa root@erpqa:/>lsdev -Cc tape rmt0 Defined Virtual Tape Drive rmt1 Available... (0 Replies)
Discussion started by: only
0 Replies

11. AIX

How to use Virtual Tape?

Dear all, i have a virtual tape connected to a vhost1 SVSA Physloc Client Partition ID --------------- -------------------------------------------- ------------------ vhost1 U8202.E4C.066BC9R-V1-C3 0x00000003... (1 Reply)
Discussion started by: only
1 Replies

12. UNIX for Advanced & Expert Users

Unable to install client AIX LPAR to vscsi hdisk provided from VIOS

Hi everybody, I have Power5 server with 4 internal hdisks each of 70Gb. VIOS server was installed via Virtual I/O Server Image Repository on the HMC. HMC release - 7.7.0 VIOS rootvg installed on 2 disk(these disks merged to one storage pool during VIOS install process),and 2 others hdisks... (2 Replies)
Discussion started by: Ravil Khalilov
2 Replies