LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-02-2018, 11:39 PM   #1
Michael Schwarzer
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
Difference between mmap2 syscall and mmap_pgoff syscall for 32-bit Linux


Hi, I am a bit new to the Linux ecosystem and was doing some development that required interaction with Linux syscalls. I understand that for 32-bit Linux, there is a mmap2 syscall in addition to mmap. However, I m not sure what is the difference between mmap2 and mmap_pgoff. From what I understand, they are identical in functionality but I dont observe mmap_pgoff in my 32-bit system files. I only observe mmap2. By the way, I am using an Ubuntu Linux distribution. Could someone enlighten me on this?
 
Old 02-03-2018, 05:31 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,485
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi & Welcome to Linux Questions.

From what I found online the mmap-pgoff system call fetches the struct file* corresponding to the bile descripter argument and calls to the mmap-pgoff. The mmap() call is implemented by libc, which invokes the mmap_pgoff() system call.

If you haven't found mmap-pgoff on your system try using the locate or find command.
If that fails use dpkg -L <name of pkg or lib> to see if it's installed.

https://stackoverflow.com/questions/...ap-kernel-call

http://www.polarhome.com/service/man...=2&of=SuSE&sf=

The font on the second link is horrible so you'll have to hold down the CTRL key and the + key to make it readable.

This might help too-

https://www.quora.com/How-do-the-brk...e-Linux-kernel

Good Luck
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux assembler tutorial - int 0x80 vs syscall zOSGuy Programming 1 05-10-2016 11:38 AM
Linux audit : kill syscall and syslog flatplane Linux - Security 5 06-09-2010 09:01 AM
what is difference between syscall of linux and Unix sdamo Linux - General 1 06-12-2005 01:07 AM
Linux syscall 11 (execve) Genjix Programming 1 12-29-2004 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration