What Is a Named Pipe Linux?
Contents

A FIFO, also known as a named pipe, is a special file similar to a pipe but with a name on the filesystem. Multiple processes can access this special file for reading and writing like any ordinary file. Thus, the name works only as a reference point for processes that need to use a name in the filesystem.

What is named pipe in OS?

A named pipe is a named, one-way or duplex pipe for communication between the pipe server and one or more pipe clients. All instances of a named pipe share the same pipe name, but each instance has its own buffers and handles, and provides a separate conduit for client/server communication.

How do you use a named pipe?

Using named pipes

  1. Create a named pipe using the mkfifo() function. …
  2. Access the named pipe using the appropriate I/O method.
  3. Communicate through the pipe with another process using file I/O functions: …
  4. Close the named pipe.
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest