Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ptob(9f) [linux man page]

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

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

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help on shell scripts execution

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)
Discussion started by: duke0001
13 Replies

2. Solaris

Hard disk write performance very slow

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)
Discussion started by: jegaraman
9 Replies

3. Solaris

Meta Devices ( Metadb )

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)
Discussion started by: jegaraman
3 Replies

4. Shell Programming and Scripting

Help with curl piped to awk

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)
Discussion started by: vinu2k3
14 Replies

5. Shell Programming and Scripting

Uploading using sftp file1 copied to file2

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)
Discussion started by: krupasindhu18
13 Replies

6. AIX

Ldapsearch takes minutes when using FQDN vs IP

Hey All, ldapsearch takes minutes when using FQDN vs IP. What could be some of the reasons for that? Cheers, DH (13 Replies)
Discussion started by: Devyn
13 Replies

7. Shell Programming and Scripting

sed Find and Replace Text Between Two Strings or Words

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)
Discussion started by: owwow14
3 Replies

8. OS X (Apple)

Just installed El Capitan...

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)
Discussion started by: wisecracker
4 Replies

9. UNIX for Beginners Questions & Answers

LENOVO ThinkPad T580 is crashing on Ubuntu 18.04

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)
Discussion started by: Circuits
10 Replies