From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 207F3C43381 for ; Wed, 6 Mar 2019 00:27:15 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC9AB20663 for ; Wed, 6 Mar 2019 00:27:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC9AB20663 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1h1KOS-00059n-94; Tue, 05 Mar 2019 19:26:44 -0500 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1h1KOQ-00059a-0K for kernelnewbies@kernelnewbies.org; Tue, 05 Mar 2019 19:26:42 -0500 Received: from mr6.cc.vt.edu (mr6.cc.vt.edu [IPv6:2607:b400:92:8500:0:af:2d00:4488]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x260QeI8030209 for ; Tue, 5 Mar 2019 19:26:40 -0500 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mr6.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x260QZN0006645 for ; Tue, 5 Mar 2019 19:26:40 -0500 Received: by mail-qt1-f197.google.com with SMTP id q11so9838619qtj.16 for ; Tue, 05 Mar 2019 16:26:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:date:message-id; bh=M+e7pCLS55nXmZ/b2aJZ+EM255uG61nT7LPQtITtepk=; b=imDXGuRl8SExJolsy0cbaqu1E/Vhb7L60ESTBD50iIfD/yLQsmmnufbODxjtApHR5r MnaT/nmuHPnYksZ23fT+JdRGxOc0zE48m4QHlXDPD7tyFsJRohY/3+UgW6Y536j5jn7i GefJa3xFvqajQCkDQRddzS5CDhKNoXkSj/qowJD1v2IsHyZWpnE2zccaCoiOgkMed54A LMO5tis59fEn8wCNYiJc25mfUhxSXQvlgMtYeM5RL5uiuJPPc35AUXKgMpxBY+6xOWC5 8aJSP4QSZReYruuqkZqnSJgK/06l0B1oJS3mLqjqKAFoE6PxuF1Cgfw7ir8MEsuP5UkZ vAaw== X-Gm-Message-State: APjAAAVLoK+I0QNKlrQfFqIOkLMI9Og87FanByWYvUh91ukUJgAzN5kb s1MDD8ff4wpaJKkLRhENKRyGvOptdtciSEc4NFDQcV7vEceKL+vxp3FTgX0YJDhfOtOzzjKF5qj 4172O/QDDR49Hie9d6FYO6wJ0BtVZHjjpHdFkTtg= X-Received: by 2002:a0c:94cf:: with SMTP id k15mr4217582qvk.55.1551831995640; Tue, 05 Mar 2019 16:26:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzI/BgmeubbxXw6GfZjMoLHpS8HGpRWT6gNwyZAAFxi6RNiBGWac+hYOZzzRoVOlh2x/WHEUw== X-Received: by 2002:a0c:94cf:: with SMTP id k15mr4217568qvk.55.1551831995364; Tue, 05 Mar 2019 16:26:35 -0800 (PST) Received: from turing-police ([2601:5c0:c001:4341::359]) by smtp.gmail.com with ESMTPSA id l129sm87453qkb.44.2019.03.05.16.26.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Mar 2019 16:26:34 -0800 (PST) From: valdis.kletnieks@vt.edu X-Google-Original-From: Valdis.Kletnieks@vt.edu X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Umair Khan Subject: Re: Unimplemented system call In-reply-to: References: Mime-Version: 1.0 Date: Tue, 05 Mar 2019 19:26:33 -0500 Message-ID: <14930.1551831993@turing-police> Cc: Kernel Newbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org 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