Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-09-2013, 12:42 AM   #1
LQ Newbie
Registered: Apr 2013
Posts: 6

Rep: Reputation: Disabled
Difference between drivers and libraries?

Could anyone explain me the difference? I Google'd it but didn't find anything helpful.

Old 10-09-2013, 01:39 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Google search: what is a device driver
device driver
Web definitions
driver: (computer science) a program that determines how a computer will communicate with a peripheral device driver
Google search: what is a programming library
programming library
Web definitions
In computer science, a library is a collection of implementations of behavior, written in terms of a language, that has a well-defined interface by which the behavior is invoked. In addition, the behavior is provided for reuse by multiple independent programs. ...
Old 10-09-2013, 02:56 AM   #3
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
Originally Posted by sharky84 View Post
Could anyone explain me the difference? I Google'd it but didn't find anything helpful.
Device Drivers:
Assume i had invented new device which starts flashing red-light when connected to usb port, if it finds virus/malware/keylogger in it. Now, that device does not start talking automatically to computer on its own, it needs some software to tell it how to communicate with *nix/win computers. that software is device driver (of that device).

Now that i am developing software (device driver) for that device, in that, i want to display virus found, date, and time of attack as report. but date can be displayed in many ways. so i write a date library, in which i code many modules on how to display dates in many ways. so whenever i want to display date, i import that module from that date library. this is what library is - a collection of programs/modules.

Hope its clear...


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
Difference between Pango and FreeType Libraries drichirich Linux - Kernel 0 06-11-2012 02:43 AM
difference in drivers SteveThePirate Linux - Software 3 08-14-2009 05:24 AM
old alsa drivers with new libraries epilitimus Linux - Software 3 08-10-2009 12:48 AM
development vs regular libraries, the difference? wufo Linux - Software 5 11-23-2007 03:02 AM
Lifeview 2000 ... What libraries/drivers do I need for it? nando_d9 Linux - Hardware 1 10-16-2003 09:58 AM > Forums > Linux Forums > Linux - Newbie

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

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