lkml.org 
[lkml]   [2002]   [Mar]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 14 Mar 2002 11:46:03 -0500
FromBen Collins <>
SubjectRe: Accessing serial device from within
On Thu, Mar 14, 2002 at 05:40:12PM +0100, Hansen Martin wrote:
> I am writing a module, that will communicate with a device attached to the
> serial port.
> 
>  How can I do that from inside a module, using the present uart driver?
> I want to do something like finding and calling the read/write routine that
> is called by the kernel when a process from user space accesses the
> /dev/ttyS1.
> 
> The reason I want to do it this way is that I don't want my module to only
> fit one uart.

The question is, why do this in the kernel, when it is more easily
handled in userspace?

-- 
 .----------=======-=-======-=========-----------=====------------=-=-----.
/       Ben Collins    --    Debian GNU/Linux    --    WatchGuard.com      \
`          bcollins@debian.org   --   Ben.Collins@watchguard.com           '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:21    [W:0.145 / U:0.040 seconds]
©2003-2008 Jasper Spaans