lkml.org 
[lkml]   [2003]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectAccessing serial port from kernel module
Date
From
Hello

I am writing a kernel module device driver for a special sort of modem that doesn't use the standard AT command set.

Basically it is a protocol translator, user mode programs such as minicom or ppp will open my device, send their AT commands, and my driver will translate the data both directions. The device attaches to the serial port.

I have written the top half, the interface between the user mode and the driver. My question now is how to open a connection to the serial port that the device is attached to.

My first thought was to use sys_open but that is not exported, because kernel modules don't need access to files.

What is the preferred way in Linux for my module to open the serial port device such as /dev/ttyS1.

Thanks a lot

Kurt Häusler
-
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 13:47    [W:0.094 / U:1.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site