From: valdis.kletnieks@vt.edu
To: Umair Khan <omerjerk@gmail.com>
Cc: Kernel Newbies <kernelnewbies@kernelnewbies.org>
Subject: Re: Unimplemented system call
Date: Tue, 05 Mar 2019 19:26:33 -0500 [thread overview]
Message-ID: <14930.1551831993@turing-police> (raw)
In-Reply-To: <CABSox7jZEHDSJq4UStbHN61RQ-v09fmrp=uBuG5ADMOXV6BtMA@mail.gmail.com>
On Tue, 05 Mar 2019 19:08:20 -0500, Umair Khan said:
> I was just roaming around the linux source code when I stumbled upon
> this line - https://github.com/torvalds/linux/blob/master/include/linux/syscalls.h#L1200
>
> May I know what is the use of this system call?
/*
* Not a real system call, but a placeholder for syscalls which are
* not implemented -- see kernel/sys_ni.c
*/
asmlinkage long sys_ni_syscall(void);
Well, did you go look at kernel/sys_ni.c like it told you to? Because if you
bothered reading the first 2 dozen lines of that file, you would find:
/*
* Non-implemented system calls get redirected here.
*/
asmlinkage long sys_ni_syscall(void)
{
return -ENOSYS;
}
Are there any remining questions?
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next prev parent reply other threads:[~2019-03-06 0:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-06 0:08 Unimplemented system call Umair Khan
2019-03-06 0:26 ` valdis.kletnieks [this message]
2019-03-06 0:52 ` Umair Khan
2019-03-06 4:25 ` valdis.kletnieks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14930.1551831993@turing-police \
--to=valdis.kletnieks@vt.edu \
--cc=kernelnewbies@kernelnewbies.org \
--cc=omerjerk@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).