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=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 71172FA3728 for ; Wed, 16 Oct 2019 14:30:09 +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 45ED321848 for ; Wed, 16 Oct 2019 14:30:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 45ED321848 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.92.3) (envelope-from ) id 1iKkJF-0005eq-6x; Wed, 16 Oct 2019 10:29:53 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iKkJC-0005ek-3y for kernelnewbies@kernelnewbies.org; Wed, 16 Oct 2019 10:29:50 -0400 Received: from mr2.cc.vt.edu (inbound.smtp.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x9GETnsl032472 for ; Wed, 16 Oct 2019 10:29:49 -0400 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x9GETi6h003366 for ; Wed, 16 Oct 2019 10:29:49 -0400 Received: by mail-qt1-f198.google.com with SMTP id n4so25128797qtp.19 for ; Wed, 16 Oct 2019 07:29:49 -0700 (PDT) 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:content-transfer-encoding:date:message-id; bh=GlmfO7xqU2bmtvosgwRYnQhRz3rlPeRZ1bVv3z/9ZGM=; b=aKUJbE1JJv7bvotMXhOv0MWTPPaf3GVixmMwUIzqO4tyynofWOk57+pWBtEoOLqQaw ZeaNyHZ0r78WSPk45fk1XXbnqWKQf1sD465kZT1LSziSN37LkUqIBs20aGN7gAmhNXSi 3B41hMn1aGCmcdIi6EvAPqHpM05rAF2g+3I5flMULpg6oetceAJGeDQi2MWmJa0cSi1C Eylt9aXcWQxk5KwmHegzqXGOn8c2gq7wrJnunWgLolpKj7uDAQpUz8HsIXI0CCg6O7fW 0fLLJ128pCkfF7ldT4ZTmY1nibgjwq1s02YRJpGmfX1dgqpwpwMDN1SSPf0/Whh+5Xzg PGhA== X-Gm-Message-State: APjAAAUKxDLkOipONHqa9PKPr8tqm1f2n90ojwJ2xH8XrbfhP2MVklI9 xhpGNVYKoYqqKFQ89cbvSFR9B3Z4B++GgMi3Z7UQO69ha3XMpOMSSIYABkQfFg4MpKtD8S5tp15 lT47jEtFL1JQX9CfM6EF8Vf1c1K/CMJrraVUZmKk= X-Received: by 2002:a05:620a:16b1:: with SMTP id s17mr40150908qkj.57.1571236183960; Wed, 16 Oct 2019 07:29:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2+MB8RfHqzOzPGEB8jivd9uUELB8l0iT67yDxUfcVvGKQ/WjevJK6fbxVOZX+NV+kiMLAcw== X-Received: by 2002:a05:620a:16b1:: with SMTP id s17mr40150877qkj.57.1571236183666; Wed, 16 Oct 2019 07:29:43 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::9ca]) by smtp.gmail.com with UTF8SMTPSA id v12sm13753546qtb.5.2019.10.16.07.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:29:42 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Irfan Ullah (울라 이르판) Subject: Re: Getting netlink socket creation returns NULL in the kernel In-Reply-To: References: Mime-Version: 1.0 Date: Wed, 16 Oct 2019 10:29:41 -0400 Message-ID: <148442.1571236181@turing-police> Cc: kernelnewbies@kernelnewbies.org 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: multipart/mixed; boundary="===============1345178513389558493==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============1345178513389558493== Content-Type: multipart/signed; boundary="==_Exmh_1571236181_33600P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1571236181_33600P Content-Type: text/plain; charset=us-ascii On Wed, 16 Oct 2019 13:54:08 +0900, Irfan Ullah said: > developed kernel space, and user space programs. Kernel and user space > programs working perfectly when I load and run these modules from the > terminal using “sudo insmod kernelmodule.ko”, and “./userspaceApp” > respectively. But, when I try to use kernel program (directly as a header > file #include "kernelmodule.h") with the kernel original file that is > “vmx.c” then it returns “NULL” while creating socket (nl_sk = NULL in nl_sk You're going to have to explain in more detail what you're doing, and possibly share your code. "when I try to use kernel program directly" doesn't make sense.... --==_Exmh_1571236181_33600P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXacpVQdmEQWDXROgAQI73A//acOY0uxtZDX9nwli4IBEAt2F2aVxx5LK /l3Cnr0iO5gvLKeR/b3vbwGwxIZ6S8sSGX4MErORSDG/0czqLBTgNJ977p2E10uc OOHaqkdZzYAQgc3ipMPsGOk1jGb0D6tHafCiEWODk0yEgOcQhyEszflaj+TgPo9y EO7mVVEAt5MR6PvpG9XqWKUqUl4zsLGRS0OFckeQwk6ZRlAqZzKZKdy2jFfO8qEf fZCk6YWKehLVTjntW7wFNQoOR4jJtlcMpSNUxf2MZoA2Co8GPryO/Jgoz+NGVvk8 52n7SVIGU4ZbT3C8RzoAKkk198qj5sibznkplyW7le/AkIZdQe8C1MZbsKUHgJVr wNUX/WmZwnKUj5A4qizyLhgdBPa1GCWsmPV8lj9NkMNE1PHWnizTffIE7azJuDmD +gUjk3+DUYRMr4jeOkBYNfqNLGiQZ+GMZLf9+uWVGn+QDv/HWa64yG3Z7/3bFxIH jm7TwHEn20umH/rTYKx2EQRBCMe2aVtrialo2DcLfurkLc13IsLOzy1xLh96v5g9 Jja3TAlEEEOH8y1o5G3dOLp9tclj2ykwi+iUOU3wL0XcN+k2D6jSYz7FJqlvlJtp 4/fdUrjQNLz0VHjQILw32jfA+EHnn8C38uU6+j4WOt7+w+VS2alszok3FzsAxbAO M5fuoIYDFBM= =3VWm -----END PGP SIGNATURE----- --==_Exmh_1571236181_33600P-- --===============1345178513389558493== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============1345178513389558493==--