e01.org

D-Bus

D-Bus (short for "Desktop Bus" ) is a message-oriented middleware mechanism that allows communication between multiple processes running concurrently on the same machine. D-Bus was developed as part of the freedesktop.org project, initiated by GNOME developer Havoc Pennington to standardize services provided by Linux desktop environments such as GNOME and KDE Plasma. The freedesktop.org project also developed a free and open-source software library called libdbus, as a reference implementation of the specification. This library is not D-Bus itself, as other implementations of the D-Bus specification also exist, such as GDBus (GNOME), QtDBus (Qt/KDE), dbus-java and sd-bus (part of systemd). Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

D-Bus (short for "Desktop Bus" ) is a message-oriented middleware mechanism that allows communication between multiple processes running concurrently on the same machine. D-Bus was developed as part of the freedesktop.org project, initiated by GNOME developer Havoc Pennington to standardize services provided by Linux desktop environments such as GNOME and KDE Plasma. The freedesktop.org project also developed a free and open-source software library called libdbus, as a reference implementation of the specification. This library is not D-Bus itself, as other implementations of the D-Bus specification also exist, such as GDBus (GNOME), QtDBus (Qt/KDE), dbus-java and sd-bus (part of systemd). The communications libraries of both processes must agree on the selected transport method and also on the particular channel used for their communication. This information is defined by what D-Bus calls an address. Unix-domain sockets are filesystem objects, and therefore they can be identified by a filename, so a valid address would be unix:path=/tmp/.hiddensocket . Both processes must pass the same address to their respective communications libraries to establish the D-Bus connection between them. An address can also provide additional data to the communications library in the form of comma-separated key=value pairs. This way, for example, it can provide authentication information to a specific type of connection that supports it. When a message bus daemon like is used to implement a D-Bus bus, all processes that want to connect to the bus must know the bus address, the address by which a process can establish a D-Bus connection to the central message bus process. In this scenario, the message bus daemon selects the bus address and the remainder processes must pass that value to their corresponding or equivalent libraries. defines a different bus address for every bus instance it provides. These addresses are defined in the daemon's configuration files. Two processes can use a D-Bus connection to exchange messages directly between them, but this is not the way in which D-Bus is normally intended to be used. The usual way is to always use a message bus daemon (i.e. ) as a communications central point to which each process should establish its point-to-point D-Bus connection. When a process—client or service—sends a D-Bus message, the message bus process receives it in the first instance and delivers it to the appropriate recipient. The message bus daemon may be seen as a hub or router in charge of getting each message to its destination by repeating it through the D-Bus connection to the recipient process. The recipient process is determined by the destination bus name in the message's header field, or by the subscription information to signals maintained by the message bus daemon in the case of signal propagation messages. The message bus daemon can also produce its own messages as a response to certain conditions, such as an error message to a process that sent a message to a nonexistent bus name. improves the feature set already provided by D-Bus itself with additional functionality. For example, service activation allows automatic starting of services when needed—when the first request to any bus name of such service arrives at the message bus daemon. This way, service processes neither need to be launched during the system initialization or user initialization stage nor need they consume memory or other resources when not being used. This feature was originally implemented using setuid helpers, but nowadays it can also be provided by systemd's service activation framework. Service activation is an important feature that facilitates the management of the process lifecycle of services (for example when a desktop component should start or stop). === libdbus === Although there are several implementations of D-Bus, the most widely used is the reference implementation libdbus, developed by the same freedesktop.org project that designed the specification. However, libdbus is a low-level implementation that was never meant to be used directly by application developers, but as a reference guide for other reimplementations of D-Bus (such as those included in standard libraries of desktop environments, or in programming language bindings). The freedesktop.org project itself recommends applications authors to "use one of the higher level bindings or implementations" instead. === kdbus === ).]] kdbus was a project that aimed to reimplement D-Bus as a kernel-mediated peer-to-peer inter-process communication mechanism. Beside performance improvements, kdbus would have advantages arising from other Linux kernel features such as namespaces and auditing, security from the kernel mediating, closing race conditions, and allowing D-Bus to be used during boot and shutdown (as needed by systemd). kdbus inclusion in the Linux kernel proved controversial, and was dropped in favor of BUS1, as a more generic inter-process communication.

References

  1. Havoc's Blog July, 2007 . · 1788562800.0
  2. Pennington, Havoc. D-Bus Tutorial . retrieved 21 October 2015 · 1788562800.0
  3. What is D-Bus? . FreeDesktop.org . retrieved 29 October 2015 · 1788562800.0
  4. D-Bus Bindings . FreeDesktop.org . retrieved 5 January 2015 · 1788562800.0
  5. D-BUS System Activation . FreeDesktop.org . retrieved 18 February 2016 · 1788562800.0
  6. Cocagne, Tom. DBus Overview . pythonhosted.org . August 2012. retrieved 22 October 2015 · 1788562800.0
  7. Corbet, Jonathan. The kdbuswreck . LWN.net . 22 April 2015. retrieved 29 June 2015 · 1788562800.0
  8. Edge, Jake. ALS: Linux inter-process communication and kdbus . LWN.net . 30 May 2013. retrieved 21 October 2015 · 1788562800.0
  9. Kroah-Hartman, Greg. [GIT PULL] kdbus for 4.1-rc1 . 13 April 2015. · 1788562800.0
  10. Love, Robert. Get on the D-BUS . Linux Journal . 5 January 2005. retrieved 14 October 2014 · 1788562800.0
  11. Molkentin, Daniel. D-Bus 1.0 "Blue Bird" Released . KDE News . 12 November 2006. retrieved 3 Novemb · 1788562800.0
  12. Ward, Brian. How Linux Works: What Eve . 2004. · 1788562800.0
  13. Palmieri, John. Get on D-BUS . Red Hat Magazine . January 2005. retrieved 3 November 2015 · 1788562800.0
  14. Poettering, Lennart. [HEADSUP] libsystemd-bus + kdbus plans . 20 March 2013. · 1788562800.0
  15. Poettering, Lennart. The new sd-bus API of systemd . 19 June 2015. retrieved 21 October 2015 · 1788562800.0
  16. gdbus . GNOME developer . retrieved 4 January 2015 · 1788562800.0
  17. Migrating to GDBus . GNOME Developer . retrieved 21 October 2015 · 1788562800.0
  18. QtDBus module . Qt Project . retrieved 1 June 2015 · 1788562800.0
  19. DBus-Java Documentation . FreeDesktop.org . retrieved 4 January 2015 · 1788562800.0
  20. Polkit reference manual . FreeDesktop.org . retrieved 3 November 2015 · 1788562800.0
  21. Palmieri, John. [announce] D-Bus 1.0.0 "Blue Bird" released . 9 November 2006. · 1788562800.0
  22. Control Your Linux Desktop with D-Bus ! . · 1788562800.0
  23. MATE: Roadmap . retrieved 31 January 2019 · 1788562800.0
  24. Corbet, Jonathan. The unveiling of kdbus . LWN.net . 2014-01-13. · 1788562800.0
  25. Documentation/kdbus.txt (from the initial patch set) . LWN.net . 2014-11-04. · 1788562800.0
  26. Keynote . · 1788562800.0
  27. Vermeulen, Jeroen. Introduction to D-Bus . FreeDesktop.org . 14 July 2013. retrieved 22 October 2015 · 1788562800.0
  28. Pennington, Havoc. D-Bus Speci . · 1788562800.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"D-Bus". 1788624585. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1373387430

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·