This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Wed May 29 06:41:20 2024 Received: from entropy.muc.muohio.edu (IDENT:root@entropy.muc.muohio.edu [134.53.213.10]) by herbie.ucs.indiana.edu (8.9.3/8.9.3) with ESMTP id VAA02777 for ; Mon, 19 Apr 1999 21:06:17 -0500 (EST) Received: from vger.rutgers.edu (vger.rutgers.edu [128.6.190.2]) by entropy.muc.muohio.edu (8.8.7/8.8.7) with ESMTP id WAA21458; Mon, 19 Apr 1999 22:04:18 -0400 Received: by vger.rutgers.edu via listexpand id <156262-7494>; Mon, 19 Apr 1999 19:33:53 -0400 Received: by vger.rutgers.edu id <155465-7494>; Mon, 19 Apr 1999 17:38:48 -0400 Received: from binky.de.uu.net ([192.76.144.28]:25578 "EHLO binky.de.uu.net" ident: "TIMEDOUT") by vger.rutgers.edu with ESMTP id <159977-7495>; Mon, 19 Apr 1999 16:39:02 -0400 Received: from andrive.de (pec-12-219.tnt2.hh2.uunet.de [149.225.12.219]:63991) by binky.de.uu.net with ESMTP (5.65+:003/3.0.2) for id RAA28244; Mon, 19 Apr 1999 17:27:25 +0200 (MET DST) Message-Id: <371B4BF9.87C13EAC@andrive.de> Date: Mon, 19 Apr 1999 17:30:01 +0200 From: Andreas Schuldei Organization: Andrive Antriebstechnik GmbH X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.0.32 i586) X-Accept-Language: en Mime-Version: 1.0 To: linux-kernel@vger.rutgers.edu Subject: Q:writing a netdevice (with skeleton.c) Content-Type: multipart/mixed; boundary="------------B10EEB40992488525E674AB5" Sender: owner-linux-kernel@vger.rutgers.edu Precedence: bulk X-Loop: majordomo@vger.rutgers.edu X-Orcpt: rfc822;linux-kernel-outgoing-dig This is a multi-part message in MIME format. --------------B10EEB40992488525E674AB5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------B10EEB40992488525E674AB5 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <371B475E.7888E3B7@andrive.de> Date: Mon, 19 Apr 1999 17:10:22 +0200 From: Andreas Schuldei Organization: Andrive Antriebstechnik GmbH X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.0.32 i586) X-Accept-Language: en MIME-Version: 1.0 To: linux-kernel@vger.rutgers.edu Subject: Q:writing a netdevice (with skeleton.c) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am writing a net-device and use the skeleton.c tablet. kernelversion: 2.2.6 I have a few questions: (1) I get form the compiler In file included from /usr/include/linux/capability.h:13, from /usr/include/linux/binfmts.h:5, from /usr/include/linux/sched.h:8, from skeleton.c:18: /usr/include/linux/fs.h:731: warning: redundant redeclaration of `kdevname' in same scope /usr/include/linux/kdev_t.h:76: warning: previous declaration of `kdevname' This does not really hurt, but is it meant this way? it is exactly the same in both files. Could I have caused it by patching the kernel? I did not get any *.rej files. This is just one of several cases of redundand declarations in the includefiles of the kernel I saw. (2) I do not fully understand the skeleton.c. What is meant by the HAVE_DEVLIST-Part? Do I not need probing if I had it? Donald Becker writes 'example-routines you must write' and leaves out the some other stuff (eg. hardware reception of packages). Was the list meant as a outline with more items obviously missing? Which ones? (3) I do not have an ethernet device. It will not run TCP/IP but will run a bitbus (some kind of fieldbus for automation) protocol. I would like to implement that protocol in a lib in userspace. I looked at the appletalk-protocol (hint from Alan) but did not get the idear. How should I implement the interface kernel <-> library and where is it best to draw the line? Where could I pass up the packets? Since I do not build a ethernet device I can remove the ethernet-reverences, right? Has anyone noticed I am a beginner? --------------B10EEB40992488525E674AB5-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/