# Linux system calls howto?

**URL:** <https://www.ruby-forum.com/t/linux-system-calls-howto/59872>\
**Category:** Ruby\
**Created:** [May 8, 2006, 2:12am UTC](https://www.ruby-forum.com/t/linux-system-calls-howto/59872 "2006-05-08T02:12:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/65b543/32.png) [@nuno](https://www.ruby-forum.com/u/nuno)\
**Post date:** [May 8, 2006, 2:12am UTC](https://www.ruby-forum.com/t/linux-system-calls-howto/59872/1 "2006-05-08T02:12:29Z")

</div>

Hello, I would like to understand how the kernel.syscall method must be  
used.

For example, what is the syntax to make a call to the ‘mount’ syscall  
defined as :  
int mount(const char \*source, const char \*target, const char  
\*filesystemtype, unsigned long mountflags, const void \*data)

given that mount call is syscall number 21 under linux

Thanks

---

<div class="post-metadata">

**Author:** ![nuno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/65b543/32.png) [@nuno](https://www.ruby-forum.com/u/nuno)\
**Post date:** [May 8, 2006, 2:30am UTC](https://www.ruby-forum.com/t/linux-system-calls-howto/59872/2 "2006-05-08T02:30:28Z")

</div>

On 7-May-06, at 8:12 PM, Nuno wrote:

> Hello, I would like to understand how the kernel.syscall method  
> must be  
> used.
> 
> For example, what is the syntax to make a call to the ‘mount’ syscall  
> defined as :  
> int mount(const char \*source, const char \*target, const char  
> \*filesystemtype, unsigned long mountflags, const void \*data)
> 
> given that mount call is syscall number 21 under linux

syscall 21, source, target, filesystemtype, mountflags, data

You need to fill in params 1 through 5 though.
