Share your knowledge at the LQ Wiki.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 02-10-2005, 07:02 PM   #1
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, 08:06 AM   #2
Senior Member
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

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

     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, 10:46 AM   #3
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.


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 11:27 AM
device driver carthyc Linux - Newbie 1 07-07-2005 07:23 AM
help please naming wireless device! op_stager Linux - Software 3 09-20-2004 12:20 AM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 02:08 PM
device driver yanw Linux - Hardware 1 01-23-2003 09:00 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 05:38 PM.

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