Date: Sat, 23 Apr 2005 11:20:46 +0400 From: =?KOI8-R?Q?=E1=CC=C5=CB=D3=C1=CE=C4=D2_=E4=C5=D2=C5=D7=D1=CE=CB=CF?= <aeder@list.ru> To: Belkin <belcassb@mail.ru> Cc: freebsd-questions@FreeBSD.org Subject: Re: About LKM and COM's devices from Russia Message-ID: <4269F74E.6070900@list.ru> In-Reply-To: <42680404.7070708@mail.ru> References: <42680404.7070708@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Belkin wrote: > Hello! I'm a programmer from Russia. Where can I find documentation > about LKM drivers or about next thing: I need to write driver of > special device attached to com-port. I don't know how can I work with > com-port (using termios.h or assembler?), because I don't know what is > correct for kernel mode. I'm using C language, English and Russian... > I'll be happy if YOU help me. > > P.S. Sorry for my English... > Usually it is totally wrong to write kernel-level driver for something working from COM-port. The transmission speed will be small, and you will have no gain to put driver in COM-port. The second problem is that serial port generate too much interrupts, and poorly written driver can hang whole system. Write user-level program which works with this device, it will be much easier. Обычно нет никакого смысла писать драйвер уровня ядра для устройства, работающего через COM-порт. Скорость передачи слишком мала, чтобы получить какой-либо выигрыш. Вторая проблема - последовательный порт генерирует слишком много прерываний, и фигово написанный драйвер может запросто завесить всю систему. Напиши программу пользовательского уровня, работающую с этим устройством, это будет много проще. -- Best Regards, Alexander Derevianko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4269F74E.6070900>