02 Nov, 2011

1 commit


28 Apr, 2008

1 commit


06 Feb, 2008

1 commit

  • Tidy kern_util.h. It turns out that most of the function declarations
    aren't used, so they can go away. os.h no longer includes
    kern_util.h, so files which got it through os.h now need to include it
    directly. A number of other files never needed it, so these includes
    are deleted.

    The structure which was used to pass signal handlers from the kernel
    side to the userspace side is gone. Instead, the handlers are
    declared here, and used directly from libc code. This allows
    arch/um/os-Linux/trap.c to be deleted, with its remnants being moved
    to arch/um/os-Linux/skas/trap.c.

    arch/um/os-Linux/tty.c had its inclusions changed, and it needed some
    style attention, so it got tidied.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

17 Jul, 2007

2 commits

  • If the host side of a console can't be opened, this will now produce visible
    error messages.

    enable_chan now returns a status and this is passed up to con_open and
    ssl_open, which will complain if anything went wrong.

    The default host device for the serial line driver is now a pts device rather
    than a pty device since lots of hosts have LEGACY_PTYS disabled. This had
    always been failing on such hosts, but silently.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Major tidying of the xterm console driver:
    got rid of the tt-mode gdb support
    tidied up the includes
    fixed lots of style violations
    replaced os_* calls with glibc calls in xterm.c
    all printk calls now have a severity indicator
    the error paths of xterm_open are closer to being right

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

08 May, 2007

2 commits

  • Calls lines_init() *after* xterm_title is modified to include umid.

    Signed-off-by: Davide Brini
    Signed-off-by: Jeff Dike
    Acked-by: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davide Brini
     
  • user_util.h isn't needed any more, so delete it and remove all includes of it.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

08 Mar, 2007

1 commit

  • Since both UML consoles do not use percpu variables, they may be called when
    the cpu is still offline, and they may be marked CON_ANYTIME (this is
    documented in kernel/printk.c, grep for CON_ANYTIME to find mentions of this).

    Works well in testing done with lock debug enabled, should be safe but is not
    needed for next release.

    This would probably help also stderr_console.c, but this is yet to test.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Acked-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paolo 'Blaisorblade' Giarrusso
     

12 Feb, 2007

6 commits

  • We need to initialize lists properly.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Remove the last vestiges of devfs from console registration. Change the name
    of the function, plus remove a couple of unused fields from the line_driver
    structure.

    struct lines is no longer needed, all traces of it are gone.

    The only way that I can see to mark a structure as being almost-const is to
    individually const the fields. This is the case for the line_driver
    structure, which has only one modifiable field - a list_head in a
    sub-structure.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • The chan_opts structure is mostly const, and needs no locking. Comment the
    lack of locking on the one field that can change.

    Make all the other fields const. It turned out that console_open_chan didn't
    use its chan_opts argument, so that is deleted from the function and its
    callers.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Some comment and whitespace cleanups in the console and mconsole code.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • I noticed that errors happening while hotplugging devices from the host were
    never returned back to the mconsole client. In some cases, success was
    returned instead of even an information-free error.

    This patch cleans that up by having the low-level configuration code pass back
    an error string along with an error code. At the top level, which knows
    whether it is early boot time or responding to an mconsole request, the string
    is printk'd or returned to the mconsole client.

    There are also whitespace and trivial code cleanups in the surrounding code.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • Clean up the console driver locking. There are various problems here,
    including sleeping under a spinlock and spinlock recursion, some of which are
    fixed here. This patch deals with the locking involved with opens and closes.
    The problem is that an mconsole request to change a console's configuration
    can race with an open. Changing a configuration should only be done when a
    console isn't opened. Also, an open must be looking at a stable
    configuration. In addition, a get configuration request must observe the same
    locking since it must also see a stable configuration. With the old locking,
    it was possible for this to hang indefinitely in some cases because open would
    block for a long time waiting for a connection from the host while holding the
    lock needed by the mconsole request.

    As explained in the long comment, this is fixed by adding a spinlock for the
    use count and configuration and a mutex for the actual open and close.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

04 Oct, 2006

1 commit


30 Sep, 2006

1 commit

  • Some locking documentation and a cleanup. uml_exitcode is copied into a local
    before sprintf sees it, in case sprintf does anything non-atomic with it.

    The rest are comments about why certain globals don't need any kind of
    locking.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

27 Sep, 2006

1 commit

  • Make lots of structures const in order to make it obvious that they need no
    locking.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

27 Jun, 2006

1 commit


07 Jan, 2006

5 commits

  • This patch adds support for throttling and unthrottling input when the tty
    driver can't handle it.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • This patch changes when console devices are configured in order to prepare the
    ground for the next patch.

    parse_chan_pair is now done earlier, when initcalls are run, rather than when
    the device is opened.

    When a host device disappears, the channel list is closed, but not freed.
    This is required by the previous change. line_config now takes the options
    structure as an argument, and line_open doesn't.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • A bit of restructuring which eliminates the all_allowed argument (which is
    mconsole-specific) to line_setup. That logic is moved to the mconsole
    callback.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • This patch replaces instances of "sizeof(foo)/sizeof(foo[0])" with
    ARRAY_SIZE(foo), which expands to the same thing.

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • This patch makes a bunch of non-functional changes -
    return(foo); becomes return foo;
    some statements are broken across lines for readability
    some trailing whitespace is cleaned up
    open_one_chan took four arguments, three of which could be
    deduced from the first. Accordingly, they were eliminated.
    some examples of "} else {" had a newline added
    some whitespace cleanup in the indentation
    lines_init got some control flow cleanup
    some long lines were broken
    removed another emacs-specific C formatting comment

    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

26 Jun, 2005

1 commit

  • Clean up the hot-unplugging code. There is now an id procedure which is
    called to figure out what device we're talking to. The error messages from
    that are now done from mconsole_remove instead of the driver. remove is now
    called with the device number, after it has been checked, so doesn't need to
    do sanity checking on it.

    Signed-off-by: Jeff Dike
    Cc: Paolo Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

29 May, 2005

1 commit

  • Remove old useless header that was used in Ye Olde Times during 2.4->2.5
    porting to abstract differences. It's definitions are no more used anyway, so
    let's finally kill it.

    Signed-off-by: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     

01 May, 2005

1 commit


17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds