Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/197.html
Дата изменения: Thu Mar 23 12:37:49 2000 Дата индексирования: Wed Sep 15 00:51:02 2010 Кодировка: Поисковые слова: molecules |
Hi all,
I've written a kernel module that communicates with a remote device via TCP. It works fine while data is passed at less than ~4K per write. Otherwise I receive a "Broken pipe" mistake :( Looks like kernel internal buffers are not being empied while I'm in kernel mode. I tried setsockopt(TCP_NODELAY), sleeping { current->state = INTERRUPTIBLE; current->timeout = jiffies + 10; schedule();} with no success.
GODS! Where is my mistake? How should I make sockets to work? I'd be happy being pointed to some TFM :) There should be probably less tricky ways to solve my problem, but I just wish to complete this approach. Thanks in advance, Mikhail
|