LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 02-10-2005, 08:02 PM   #1
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Rep: Reputation: 30
Naming device driver


I'm going to be creating a device driver for the OpenBSD kernel (particularly a network card driver), any idea how naming the device works? I'm not really sure how the names are conventionally came about to, for example here is a network card "fxp0", or, "xl0". Thanks ahead of time.
 
Old 02-11-2005, 09:06 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Traditionally, the device is named with some abbreviation of the chipset it is designed to control.

Code:
     The xl driver provides support for PCI ethernet adapters and embedded
     controllers based on the 3Com "boomerang," "cyclone," "hurricane" and
     "tornado" bus-master Etherlink XL chips
This may not always be the case but if your chipset has some easy, unused abbreviation, then it might be best to go in that direction. But the best idea would be designing it then asking what name would be best for it (have a good working name in case so they can choose to leave the name as you designed it if that is their choice) and be willing to change the name if they come up with one that is more intune with their ideas.
 
Old 02-12-2005, 11:46 AM   #3
Crunch
Member
 
Registered: Feb 2003
Location: York, PA
Distribution: Slackware, FreeBSD, OpenBSD
Posts: 162

Original Poster
Rep: Reputation: 30
Alright, thanks. I was thinking about doing that, but I was caught up on naming the functions correctly and didn't feel like going back and changing everything, then I remembered sed
Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Device driver from 2.4 to 2.6 setu_garg Programming 1 09-16-2005 12:27 PM
device driver carthyc Linux - Newbie 1 07-07-2005 08:23 AM
help please naming wireless device! op_stager Linux - Software 3 09-20-2004 01:20 AM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 03:08 PM
device driver yanw Linux - Hardware 1 01-23-2003 10:00 AM


All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration