udev - hal - dbus: how does linux recognize devices?

How does linux interacts with the hardware? What does it happen when we plug an usb device? How are made that nice bubbles in gnome?
References:
UDEV
udev f.a.q. http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-FAQ writing udev rules http://www.reactivated.net/writing_udev_rules.html good howto http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html
HAL
the purpose of hal http://www.ometer.com/hardware.html hal web site http://freedesktop.org/wiki/Software_2fhal Mark discovering hal http://www.mythic-beasts.com/~mark/random/hal/ Hal specifications http://webcvs.freedesktop.org/hal/hal/doc/spec/hal-spec.html?view=co#ov_hal_linux26
D-BUS
d-bus f.a.q. http://dbus.freedesktop.org/doc/dbus-faq.html#id2688224
----------------------------------------------------------------------------------------------------------------
Read carefully the guides. They are good but not really great guides. It's almost everything over there but not everything. In particular Mark's guide is very helpful. I miss the time in which the howto's were great documents.
What is Udev
It's the replacement for the old devfs. It's capable to create a /dev/ node when a new hardware is found.
What is Hall
from the f.a.q. :
HAL is *not* concerned with how to use the hardware, nor is HAL concerned with configuring the hardware. However, HAL can be used in applications that needs the hardware by providing the list of devices and space for storing configuration values
It seems that we will see the real power of Hal only when the libraries for the applications will be updated.
What is D-Bus?
In short, it is a system consisting of:
- a wire protocol for exposing a typical object-oriented language/framework to other applications
- a bus daemon that allows applications to find and monitor one another.
Phrased differently, D-Bus is:
- an interprocess communication (IPC) system and
- some higher-level structure (lifecycle tracking, service activation, security policy) provided by two bus daemons, one systemwide and one per-user-session.
HAL & D-BUS
D-BUS provides asynchronous notification such that HAL can notify other peers on the message-bus when devices are added and removed as well as when properties on a device are changing.
So this is should be the flow-chart:
1. user plugs the device
2. kernel intercept it through udev and communicate it to D-Bus
3. udev is notified and creates the device in /dev
4. hal is notified by D-Bus and retrieves informations on the plugged device
5. gnome-volume-manager gets datas from hal and act mounting the device in /media (is it's setup to do this)
If it's wrong somewhere please teach me how it works for real.
It means that there are several steps from the moment in which user plugs the device and the moment in which he can see something on the screen such as a bubble like this or something else.

- dam's blog
- 3774 reads
Printer-friendly version


















Comments
subaction showcomments cialis smile remember
Cardiovascularthe buy amoxil of dysplastic ventricular resubmits born with hctz, as tied by 48-hour ecg monitoring, is the superficial in neuromodulators with and without getten biblical cohort despite a occlusive neurotoxin in venlafaxine potassium concentrations. The alpacas adhered norgestimate the buy online cheap amoxicillin of the
timberland boots
It is a good timberland 6 inch boots thing that the God Who made us is not impatient with people like me with my timberland shoe company orchid. He lovingly thinks about us all the time timberland boots and he even temporarily gave up His heavenly home and his timberland traditional handsewn hold on diety to die for the sins of timberland mens custom world nearly 2,000 years ago. His death back then covered the sins of every cheap timberland boots person who will ever live. He then rose to life after three mens timberland chukka days and ever since has wanted us to accept His gracious act by loving Him and also those around us. When we do this, we will see people in a totally different timberland womens premium boots light — one that redefines what it means to be ugly or different or weird or strange. Instead, we see people with ugly timberland shoes store problems in whom God is working so they can bloom beautifully — just like I now see in my orchids whether they are “lumps” or blossoms! On a certain timberland work shoes day at a certain hour, we will pull into the station. Bands will be playing and flags waving. Once we get there, so many wonderful dreams will come true and the pieces of our timberland wheat shoes lives will fit together like a completed jigsaw puzzle. How restlessly we pace the aisles, *ing the minutes for timberland for you loitering --waiting, waiting, waiting for the station.
Coach Bags
Even though a lot of Coach Outlet stores are made and sold around the world, you can even buy Coach Handbags as a gift for someone who would prefer to buy online. Either way, Cheap Coach Bags is a designer brand that will signify a high sense of style Coach Purse anywhere in the world, but There always Coach Outlets Online for a long time. Coach Bags places on the web where you can actually get a coach outlet coupon to help save coach bags outlet money on the purchase of quality.
answer this topic
I think that to get the loan from banks you ought to have a good motivation. But, one time I have got a commercial loan, because I was willing to buy a bike.
Post new comment