9P (protocol)

9P
Communication protocol
PurposeConnecting components
Developer(s)Bell Labs
Introduction1992; 32 years ago (1992)
Influenced9P2000

9P (or the Plan 9 Filesystem Protocol or Styx) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. Files are key objects in Plan 9. They represent windows, network connections, processes, and almost anything else available in the operating system.

9P was revised for the 4th edition of Plan 9 under the name 9P2000, containing various improvements. Some of the improvements made are the removal of certain filename restrictions, the addition of a 'last modifier' metadata field for directories, and authentication files.[1] The latest version of the Inferno operating system also uses 9P2000. The Inferno file protocol was originally called Styx, but technically it has always been a variant of 9P.

A server implementation of 9P for Unix, called u9fs,[2][3] is included in the Plan 9 distribution. A 9P OS X client kernel extension is provided by Mac9P.[4] A kernel client driver implementing 9P with some extensions for Linux is part of the v9fs project. 9P and its derivatives have also found application in embedded environments, such as the Styx-on-a-Brick project for Lego Mindstorms Bricks.[5]

  1. ^ "Plan 9 from Bell Labs — Overview". 9p.io.
  2. ^ "research: u9fs.tgz is the source code tarbal". www.netlib.org.
  3. ^ "Plan 9 /sys/man/4/u9fs". 9p.io.
  4. ^ benavento (April 19, 2019). "9P for Mac" – via GitHub.
  5. ^ "Styx-on-a-Brick". Cat-V Doc.