Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 17 Oct 2002 23:22:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 17 Oct 2002 23:22:51 -0400 Received: from dsl-65-188-232-225.telocity.com ([65.188.232.225]:48597 "EHLO area51.underboost.net") by vger.kernel.org with ESMTP id ; Thu, 17 Oct 2002 23:22:50 -0400 Date: Wed, 16 Oct 2002 23:25:52 -0400 (AST) From: dijital1 To: linux-kernel@vger.kernel.org Subject: referencing other modules Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 23 Does anyone have any ideas as to why this following 3 lines of code don't work? The kernel version is 2.5.43 and I have several other modules loaded before I load the module containing this code. From what I can discern in linux/kernel/module.c new modules are added to the head of the list to it seems that my code would work. Any help or suggestions would be appreciated. Incidentally, this code is being called from the module initialisation function. struct module *next_mod; next_mod=THIS_MODULE->next; printk(KERN_DEBUG"%s\n", next_mod->name); Ron Henry "the illiterate of the future are not those who can neither read or write; but those who cannot learn, unlearn, and relearn..." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/