About LKM and COM's devices from Russia
Александр Деревянко
aeder at list.ru
Sat Apr 23 00:10:33 PDT 2005
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
More information about the freebsd-questions
mailing list