search for: n_outbuf

Displaying 6 results from an estimated 6 matches for "n_outbuf".

2017 Mar 17
1
[PATCH] tty: hvc: don't allocate a buffer for console print on stack
...e6aaf 100644 > --- a/drivers/tty/hvc/hvc_console.c > +++ b/drivers/tty/hvc/hvc_console.c > @@ -143,10 +143,15 @@ static struct hvc_struct *hvc_get_by_index(int index) > static void hvc_console_print(struct console *co, const char *b, > unsigned count) > { > - char c[N_OUTBUF] __ALIGNED__; > unsigned i = 0, n = 0; > int r, donecr = 0, index = co->index; > > + /* > + * Access to the buffer is serialized by console_sem in caller code from > + * kernel/printk/printk.c > + */ > + static char c[N_OUTBUF] __ALIGNED__; What about allocating...
2017 Mar 17
1
[PATCH] tty: hvc: don't allocate a buffer for console print on stack
...e6aaf 100644 > --- a/drivers/tty/hvc/hvc_console.c > +++ b/drivers/tty/hvc/hvc_console.c > @@ -143,10 +143,15 @@ static struct hvc_struct *hvc_get_by_index(int index) > static void hvc_console_print(struct console *co, const char *b, > unsigned count) > { > - char c[N_OUTBUF] __ALIGNED__; > unsigned i = 0, n = 0; > int r, donecr = 0, index = co->index; > > + /* > + * Access to the buffer is serialized by console_sem in caller code from > + * kernel/printk/printk.c > + */ > + static char c[N_OUTBUF] __ALIGNED__; What about allocating...
2008 Jun 03
12
[RFC 0/3]: hvc_console rework for platform without hard irqs
This patch set if my first attempt to make virtio_console usable on s390. To do so, I had to change hvc_console, because s390 has no request_irq and no free_irq. I want to get feedback from the main users of hvc_console before I proceed. The basic idea of this patch set is to remove the calls to request_irq and free_irq and replace them with backend specific callbacks. Please see the
2008 Jun 03
12
[RFC 0/3]: hvc_console rework for platform without hard irqs
This patch set if my first attempt to make virtio_console usable on s390. To do so, I had to change hvc_console, because s390 has no request_irq and no free_irq. I want to get feedback from the main users of hvc_console before I proceed. The basic idea of this patch set is to remove the calls to request_irq and free_irq and replace them with backend specific callbacks. Please see the
2009 Dec 22
4
[PATCH 00/31] virtio: console: Fixes, multiple devices and generic ports
Hey Rusty, This series adds support for generic ports with each port getting two vqs: one for input and one for output. The host notifies us via the config space of the max. number of ports that can be added for a particular device. As a result of that change, the buffer management for find_readbufs and send_bufs is moved to the vqs. Only one outbuf per port is used so we bide away some time in
2009 Dec 22
4
[PATCH 00/31] virtio: console: Fixes, multiple devices and generic ports
Hey Rusty, This series adds support for generic ports with each port getting two vqs: one for input and one for output. The host notifies us via the config space of the max. number of ports that can be added for a particular device. As a result of that change, the buffer management for find_readbufs and send_bufs is moved to the vqs. Only one outbuf per port is used so we bide away some time in