Re: [PARPORT] writting kernel modules

From: Gora Mohanty (
Date: Mon Mar 17 2003 - 07:05:46 EST

  • Next message: Z F: "Re: [PARPORT] [Fwd: LS-120 drive]"

    "Hemanshu Kanji Bhadra, Noida" writes:
    >I was trying to write a simple hello kernel module from the book, "embedded
    >linux interfacing", I got many errors in module.h and proc_fs.h header

    >can anyone have a sample kernel module program for redhat linux 7.3.

    I am not familiar with this book, but the definitive book for writing
    Linux device drivers is probably "Linux Device Drivers," an OReilly
    book by Alessandro Rubini and Jonathan Corbet. The second edition is
    available online at, but consider
    purchasing the book if you can afford it. Many other resources are
    available on the Web: try a Google search.
      From your description of the problem, it seems that you might be trying
    to use a version of gcc different from the one that the kernel was compiled
    with and/or you are not defining the correct #define variables, e.g.,
    __KERNEL__, at compile time. See /usr/src/linux/Documentation/Changes
    (the path might be slightly different for Redhat) for what version of gcc
    to use.

    >is that the redhat 7.3 doesn't have kernel version 7.3.?

    It is really meaningless to specify Redhat 7.3. What you should be targetting
    is a particular version of the Linux kernel, or better yet, a range of
    versions. I belive that Redhat 7.3 uses Linux kernel 2.4, but am not sure.
    /usr/src/linux/Documentation/ should answer all of these.
      Finally, this mailing list is not the right place for your question. Try
    one of the comp.os.linux.* newsgroups.


    -- To unsubscribe, send mail to: --
    -- with the single word "unsubscribe" in the body of the message. --

    This archive was generated by hypermail 2b29 : Mon Mar 17 2003 - 07:22:02 EST