lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080519174738.GA20961@uranus.ravnborg.org>
Date:	Mon, 19 May 2008 19:47:39 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	Alan Cox <alan@...rguk.ukuu.org.uk>
Cc:	linux-kernel@...r.kernel.org, akpm@...l.org, greg@...ah.com
Subject: Re: [PATCH 01/20] tty: Introduce a tty_port common structure

Hi Alan.

On Mon, May 19, 2008 at 03:50:13PM +0100, Alan Cox wrote:
> From: Alan Cox <alan@...hat.com>
> 
> Every tty driver has its own concept of a port structure and because they all
> differ we cannot extract commonality. Begin fixing this by creating a structure
> drivers can elect to use so that over time we can push fields into this and
> create commonality and then introduce common methods.
> ---
> 
>  drivers/char/tty_io.c |   37 +++++++++++++++++++++++++++++++++++++
>  include/linux/tty.h   |   29 +++++++++++++++++++++++++++++
>  2 files changed, 66 insertions(+), 0 deletions(-)
> 
> 
> diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
> index 49c1a22..fb17b18 100644
> --- a/drivers/char/tty_io.c
> +++ b/drivers/char/tty_io.c
> @@ -2004,6 +2004,43 @@ ssize_t redirected_tty_write(struct file *file, const char __user *buf,
>  	return tty_write(file, buf, count, ppos);
>  }
>  
> +void tty_port_init(struct tty_port *port)
> +{
> +	memset(port, 0, sizeof(*port));
> +	init_waitqueue_head(&port->open_wait);
> +	init_waitqueue_head(&port->close_wait);
> +	mutex_init(&port->mutex);
> +}
> +
> +EXPORT_SYMBOL(tty_port_init);
A small nitpick...
The typical style is to let the EXPORT_SYMBOL follow the closing
brace with no extra empty line.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ