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-next>] [day] [month] [year] [list]
Message-ID: <4718FCE6.204@freemail.hu>
Date:	Fri, 19 Oct 2007 20:52:22 +0200
From:	Németh Márton <nm127@...email.hu>
To:	Richard Purdie <rpurdie@...ys.net>,
	Dmitry Torokhov <dmitry.torokhov@...il.com>
CC:	linux-kernel@...r.kernel.org, Rodrigo Pereira <rodripe@...il.com>
Subject: [PATCH 1/3] leds-clevo-mail: export i8042_command()

From: Márton Németh <nm127@...email.hu>

Export the i8042_command() function which manages the mutual exclusion
with the help of the i8042_lock spinlock. This lets possible to use the
i8042 hardware safely from other part of the kernel, too.

Signed-off-by: Márton Németh <nm127@...email.hu>
---
diff -uprN linux-2.6.23.orig/drivers/input/serio/i8042.c linux-2.6.23/drivers/input/serio/i8042.c
--- linux-2.6.23.orig/drivers/input/serio/i8042.c	2007-10-09 22:31:38.000000000 +0200
+++ linux-2.6.23/drivers/input/serio/i8042.c	2007-10-18 06:52:12.000000000 +0200
@@ -20,6 +20,7 @@
 #include <linux/err.h>
 #include <linux/rcupdate.h>
 #include <linux/platform_device.h>
+#include <linux/i8042.h>

 #include <asm/io.h>

@@ -208,7 +209,7 @@ static int __i8042_command(unsigned char
 	return 0;
 }

-static int i8042_command(unsigned char *param, int command)
+int i8042_command(unsigned char *param, int command)
 {
 	unsigned long flags;
 	int retval;
@@ -219,6 +220,7 @@ static int i8042_command(unsigned char *

 	return retval;
 }
+EXPORT_SYMBOL(i8042_command);

 /*
  * i8042_kbd_write() sends a byte out through the keyboard interface.
diff -uprN linux-2.6.23.orig/include/linux/i8042.h linux-2.6.23/include/linux/i8042.h
--- linux-2.6.23.orig/include/linux/i8042.h	1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.23/include/linux/i8042.h	2007-10-18 06:53:29.000000000 +0200
@@ -0,0 +1,9 @@
+/* There is already a header file linux/drivers/input/serio/i8042.h, so
+ * using the _LINUX prefix here as this is the <linux/i8042.h> file.
+ */
+#ifndef _LINUX_I8042_H
+#define _LINUX_I8402_H
+
+int i8042_command(unsigned char *param, int command);
+
+#endif
-
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