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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED 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 53B7BC43381 for ; Sat, 9 Mar 2019 17:01:27 +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 DD47920815 for ; Sat, 9 Mar 2019 17:01:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DD47920815 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 1h2fKx-0001RK-Ki; Sat, 09 Mar 2019 12:00:39 -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 1h2fKw-0001RE-2x for kernelnewbies@kernelnewbies.org; Sat, 09 Mar 2019 12:00:38 -0500 Received: from mr1.cc.vt.edu (junk.cc.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x29H0ZFL024798 for ; Sat, 9 Mar 2019 12:00:36 -0500 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mr1.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x29H0UBr000990 for ; Sat, 9 Mar 2019 12:00:35 -0500 Received: by mail-qt1-f197.google.com with SMTP id 43so842621qtz.8 for ; Sat, 09 Mar 2019 09:00:35 -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:content-transfer-encoding:date:message-id; bh=zkgitfJYECj0vKFIOZf5msW8xV94n2h3I76y5JtyiJg=; b=CFTQmkDc9zoHzcLvRWEFqj54jTRIU4xJ1sW5y/WWBZbXry/eKNOR7g37Gx3Y7m7zuL uM+cs/UEJ/ab+MV6w8JRL53jBfQs4KMgaVunb9tBohyRwPP6Lg4FbPLuFc0QLwbAY/No rsNSqifhSqB3T855L3a+27hgDlgD89LZV1WdmmyaPUqxTeYdOoRNUoYWv2LCsOStHMbI MypkgyMqetCIBfJXTeW7BqJHOZHvNu18pFOYBKzrRJGeEAF5nhtuy/4oFURGNmYnruUZ Wwrko4yBrnQKsdu8MZSMkBc4AT7FLxIsZxKmNyCikpmB6oSj93S1k9LRb1gHsSoKFBzu Vshw== X-Gm-Message-State: APjAAAUg/8xwhQWkvo2MxEKB7fRagn1mgVjkv0/Z9KCT8cRPz41nbx98 ajeLgoKIVhGPDyzygS5wqS/asWOuOprk5yFTBCZUcso8sD4aZBtW1Xe3RdzrRko7U0ryrO1U0Dy RXUSwC0BN5q8r825nm4JIMhFqXXaC5EBPmx8Yfqo= X-Received: by 2002:a0c:d24a:: with SMTP id o10mr19918111qvh.170.1552150830232; Sat, 09 Mar 2019 09:00:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyqzpC/0Wat9Nh/sjhGanLDuftb5+x+3mMkFGvTgEUdRM5o8gs6CTITYG5Lhv+NlL8JIZimAQ== X-Received: by 2002:a0c:d24a:: with SMTP id o10mr19918099qvh.170.1552150829970; Sat, 09 Mar 2019 09:00:29 -0800 (PST) Received: from turing-police ([2601:5c0:c001:4341::208]) by smtp.gmail.com with ESMTPSA id 24sm521221qtu.17.2019.03.09.09.00.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Mar 2019 09:00:28 -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: Lev Olshvang Subject: Re: Finding all modules which consume kernel lib? In-reply-to: <17628231552125884@sas1-4b7566131ec9.qloud-c.yandex.net> References: <20190309082904.GA12998@kroah.com> <17628231552125884@sas1-4b7566131ec9.qloud-c.yandex.net> Mime-Version: 1.0 Date: Sat, 09 Mar 2019 12:00:27 -0500 Message-ID: <16221.1552150827@turing-police> Cc: Greg KH , Andy Nicholas , "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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Sat, 09 Mar 2019 13:04:44 +0300, Lev Olshvang said: > There is also modulus.dep file which depmod builds. You can just grep to find > which modulus depends. Note that the modules.dep file only tells modprobe "If you're loading module A, you need to load B first to get some symbols registered". If B is built-in to the kernel, its EXPORT_SYMBOLS are already available, so it doesn't need to be listed in modules.dep. Also, it doesn't record build-time dependencies - it totally assumes that A and B were built against the same source tree and that Kbuild took care of making sure that any source code changes to B that affect A caused a rebuild of A to happen. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies