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: <4655C93D.40005@gmx.de>
Date:	Thu, 24 May 2007 19:19:57 +0200
From:	"Lars K.W. Gohlke" <lkwg82@....de>
To:	Tilman Schmidt <tilman@...p.cc>
CC:	Jan Engelhardt <jengelh@...ux01.gwdg.de>,
	linux-kernel@...r.kernel.org
Subject: Re: How to access correctly serial port inside module?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tilman Schmidt schrieb:
> Am 24.05.2007 12:22 schrieb Lars K.W. Gohlke:
>> I will summarize the concrete scenario, which will lead to the
>> understanding and further solution of deadling with serial driver.
>>
>> [scenario]
>>
>> 	1. in userspace I'm doing: > date > /dev/ttyS0
>> 	2. in kernelspace I want to print out this date.
>>
>> [/scenario]
>
> I must admit that now I do not understand anything anymore.
> I thought you wanted to receive some data over an RS232 serial
> port and process it in your kernel module, but this doesn't
> look like that at all.
>


> So what is it you are trying to do?
> Do you just want to write something to a file in userspace and
> receive it in your kernel module?
I want to read from serial port (I mean the port, which is called
/dev/ttyS0 in user-space). Then I want copy_to_user() it through
/proc/serialPort

This is just to get familiar with driver programming (in kernelspace),
it could be better done in userspace - I know. But this is for learning.

It is a kind of synthetic problem, but after this, I hope too know how
to handle further ones.

Understood? It is a little bit strange, but hope it is explained well. ;)

If tell me that for /dev/ttyS0 I can adept it to /dev/ttyS1 etc..

thx

>
> Regards,
> Tilman
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - GPGrelay v0.959

iD8DBQFGVck/AAomYJ1taN8RAiYwAJ96kYK6byxHea5MhvO0zaEB1yAXQQCdGS9c
PFU39kx+d/xgj9QxusfEplc=
=OeRZ
-----END PGP SIGNATURE-----

View attachment "lkwg82.vcf" of type "text/x-vcard" (125 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ