lkml.org 
[lkml]   [2003]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Writing modules for 2.5
From
Date
mru@users.sourceforge.net (Måns Rullgård) writes:

> What magic needs to be done when writing modules for linux 2.5.x?
> Insmod tells me "Invalid module format" and the kernel log says "No
> module found in object". I've tried to mimic the foo.mod.c stuff in
> the kernel tree, but I can't figure out the right way to do it.

Welcome to the wonderful new world of in kernel module loading, finally
with understandable error messages. Now bad error reporting is not limited
to netlink anymore.

You need -DKBUILD_BASENAME=name

Also you need module_init/module_exit declarations.

-Andi
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.042 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site