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)
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)
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)
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)
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)
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)
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)
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)
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)
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)