Re: [Q] New tty flip interface doubt.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 22, 2006 at 11:33:15AM +0400, Sergei Organov wrote:
> One more question, if I get memory for N bytes with
> tty_prepare_flip_string() then store M (M <= N) bytes into the buffer,
> how do I tell tty layer that only M bytes are in fact stored?

You don't.

> [I'm thinking about eliminating buffers allocation for urbs as well as
> data copy when transferring data from USB subsystem to flip buffers of
> the tty subsystem. Currently the flow is:

The tty buffers may not be DMAable

> and it seems that using tty buffers directly is a better idea:
> 
> - allocate N-bytes data buffer from tty and use it for urb
> - submit the urb to USB subsystem
> - flip M-bytes of data (M <= N) in USB receive callback.

Its doable in theory but is it worth it ?

-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux