From mboxrd@z Thu Jan 1 00:00:00 1970 From: freakrobot@acm.org (cheng chen) Date: Fri, 14 Jan 2011 13:20:19 +0800 Subject: How to design protocol stack with can-bus driver of character driver In-Reply-To: <20110113174044.GA28247@kroah.com> References: <20110113174044.GA28247@kroah.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org OK, I guess at least my previous work can be used for reference group. Thanks for both of you. On Fri, Jan 14, 2011 at 1:40 AM, Greg KH wrote: > On Fri, Jan 14, 2011 at 12:42:52AM +0800, cheng chen wrote: > > Hi all, > > I am working on vehicle body control system with can-bus as my BE final > > project. > > It contains three parts. > > > > 1.CAN chip driver > > 2.CAN-bus protocol stack > > 3.UI > > > > The problem is that I already have written the CAN chip driver as a > > character device driver using IO-simulated SPI. > > Oops, don't do that. > > > So with this character driver API open() read() write() ioctl(), I start > to > > wonder where can I put my protocol stack? > > Use the in-kernel CAN protocol stack, that is much easier. > > > Or should rewrite the driver in network device frameworks? > > Yes. > > thanks, > > greg k-h > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > -- Cheng(?) Fedora Project Contributor -- Ambassador https://fedoraproject.org/wiki/User:Freakrobot _______________________________________________ My Page: http://freakrobot.blogbus.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110114/2fe8c6bd/attachment.html