ptob(9F) Kernel Functions for Drivers ptob(9F)NAME
ptob - convert size in pages to size in bytes
SYNOPSIS
#include <sys/ddi.h>
unsigned long ptob(unsigned long numpages);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
numpages Size in number of pages to convert to size in bytes.
DESCRIPTION
This function returns the number of bytes that are contained in the specified number of pages. For example, if the page size is 2048, then
ptob(2) returns 4096. ptob(0) returns 0.
RETURN VALUES
The return value is always the number of bytes in the specified number of pages. There are no invalid input values, and no checking will be
performed for overflow in the case of a page count whose corresponding byte count cannot be represented by an unsigned long. Rather, the
higher order bits will be ignored.
CONTEXT
ptob() can be called from user or interrupt context.
SEE ALSO btop(9F), btopr(9F), ddi_ptob(9F)
Writing Device Drivers
SunOS 5.10 11 Apr 1991 ptob(9F)
Check Out this Related Man Page
btop(9F) Kernel Functions for Drivers btop(9F)NAME
btop - convert size in bytes to size in pages (round down)
SYNOPSIS
#include <sys/ddi.h>
unsigned long btop(unsigned long numbytes);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
numbytes Number of bytes.
DESCRIPTION
The btop() function returns the number of memory pages that are contained in the specified number of bytes, with downward rounding in the
case that the byte count is not a page multiple. For example, if the page size is 2048, then btop(4096) returns 2, and btop(4097) returns 2
as well. btop(0) returns 0.
RETURN VALUES
The return value is always the number of pages. There are no invalid input values, and therefore no error return values.
CONTEXT
The btop() function can be called from user, interrupt, or kernel context.
SEE ALSO btopr(9F), ddi_btop(9F), ptob(9F)
Writing Device Drivers
SunOS 5.11 16 Jan 2006 btop(9F)
I have already posted the question. Because previous post has sinked so that I have to ask the question again. I created the script and chmod it as 755. The ksh shell is in bin. Now I typed ./script_name.ksh to execute the script in the directory of that script. The return message was: Ksh:... (13 Replies)
Dear All,
I have a hard disk in solaris on which the write performanc is too slow.
The CPU , RAM memory are absolutely fine.
What might be reason.
Kindly explain.
Rj (9 Replies)
Hi All,
I have two disks which has been configured for RAID 1 Already.
I am adding more 6 disks in the system and I am configuring RAID 1 for all.
So in this case should , how should i create a metadb .
Thanks and Regards
Rj (3 Replies)
Greetings!!
am trying to retrieve a particular section from the url as in url.txt..
aim is to get the 83.8 MB as output, but somehow this is not happening!, please suggest what might be wrong.. attached is the screenshot and text file of the page source.
Best Regards,
Vinu (14 Replies)
Hi All,
i am using hp-ux server and doing mput command for uploading the multiple files.
below is the code
sftp hfjr@usilehrttlsd01.com
cd /home/sftp_dir
mput kk1 kk2
i am getting Uploading kk1 to /home/sftp_dir/kk2.
problem is i am getting kk2 file only not kk1 file.
when i am... (13 Replies)
I am looking for a sed in which I can recognize all of the text in between two indicators and then replace it with a place holder.
For instance, the 1st indicator is a list of words "no|noone|havent" and the 2nd indicator is a list of punctuation ".|,|!".From a sentence such as
"noone... (3 Replies)
Just updated from Yosemite to El Capitan on my iMac...
What an improvement!
The front end is really slick now on this tool...
Still using OSX 10.7.5 on my laptop and the Applescript code inside AudioScope.sh is now broken under El Capitan but the rest of AudioScope.sh works on it...... (4 Replies)
My LENOVO ThinkPad T580 is crashing on Ubuntu 18.04. The crashes are seemingly happening at random. I tried running the following command as specified by this SO post:
sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
However, that did not work the system... (10 Replies)