Re: What Linux lacks : better in-kernel user interface

From: Saturday7 (
Date: 09/02/04

Date: 1 Sep 2004 17:51:45 -0700

Todd Knarr <> wrote in message news:<L2eYc.159811

> This has been suggested before, and rejected for a very good reason:
> interface code doesn't belong in the kernel where it can crash the
> whole system. Low-level framebuffer code is there, ditto the bits
> of the video drivers that access the hardware, but the UI belongs
> out in userland where if it dies it doesn't take down the whole
> rest of the system.

I wasn't very clear about what I am proposing. I am not suggesting
putting X Windows in the kernel....that would be crazy.

Nor would I ever suggest putting a windowing system in the kernel,
since its memory demands are potentially very large.

Rather I am suggesting a simple unified interface like SVGAlib,
optionally accelerated but founded on the framebuffer code,
that supports the ideas of :

1. mouse events and mouse configuration
2. basic drawing primitives e.g. line, arc, point, rectangle, fill-area,
3. a basic font-drawing primitive using a single compiled-in proportional font,
   the rest being in user space

All of this would be organized around a single device i.e.
IOCTL interface.

The reason I am suggesting this is that the most recent SVGAlib
is broken for kernel 2.4 and newer -- at least with my system --
and it seems to me silly to have two similar types of code base --
framebuffer/mouse in the kernel plus SVGAlib (also GRX and
other similar fullscreen interfaces) being updated. I say,
why not just update the kernel.

Relevant Pages

  • [BUG] panic 2.6.20-rc3 in nf_conntrack
    ... When I shut down my ppp0 interface the kernel ... This kernel had the ipp2p patch from patch-o-matic-ng applied, ... # Firmware Drivers ... # ACPI Support ...
  • [PATCH 3/3] Add documentation about why the in-kernel api is the way it is.
    ... +The Linux Kernel Driver Interface ... +kernel interface, nor does it have a stable kernel interface. ...
  • Re: [PATCH 0/7] dlm: overview
    ... > aren't just unique within a single cluster (think clusters of clusters, ... How the configuration gets from the config file to kernel is a mystery to me ... By a message over a socket, ... Let's have no magical filesystems in the core interface please. ...
  • [RFC] New kernel-message logging API
    ... Backwards compatibility with printk(), syslog, etc. ... way the whole kernel can be converted to a new interface in one go. ... const char *format; ...
  • Re: A proposal - binary
    ... VMI into the paravirt_ops interface. ... it is important for me to educate everyone on that layer and find out the opinions people have on what an acceptable license / source policy is for that layer. ... We use it to indirect hypervisor calls so that they can be future compatible, instead of forcing a particular hypervisor interface. ... This layer is very much like a PAL code layer that allows system level instructions to have alternative implementations, and also, most importantly, means we are free to change the structural layout of information which is shared between the hypervisor and the kernel. ...