Advanced

Linux: Turning Relayfs into an API

Posted by tadelste on · Post a comment
KernelTrap
Mail this story
Print this story

A recent discussion and series of patches on theLinux Kernel mailing list looked at removingrelayfs [story], moving its functionality into an API using sysfs. Paul Mundt offered the patches summarizing, "this is a small patch set for getting rid of relayfs, and moving the core of its functionality to kernel/relay.c. The API is kept consistent for everything but the relayfs-specific bits, meaning people will have to use other file systems to implement relay channel buffers." The thread offers more explanation as to the benefits of the change, with quite a number of people supporting the patches.

Relayfs is described as "a bunch of per-cpu kernel buffers that can be efficiently written into from kernel code. These buffers are represented as files which can be mmap'ed and directly read from in user space. The purpose of this setup is to provide the simplest possible mechanism allowing potentially large amounts of data to be logged in the kernel and 'relayed' to user space." It was originally merged into Andrew Morton [interview]'s -mm tree in January of 2005 [story], and finally made it into the mainline kernel with the release of 2.6.14.

Full Story

  Nav
» Read more about: Groups: Kernel; Story Type: Interview

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post