Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org?
Visit the following links: If you have any problems with the registration process or your account login, please. If you need to reset your password,. Having a problem logging in? Please visit to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration.
I am new to Linux as a developer (but not new to C++) and I have tried to research (without success) if it is possible to change the size of this buffer, or indeed if my assumptions are even true. In my application timing is critical and I need to be alerted whenever there is a new byte on the read buffer. There are sixteen standard line disciplines supported by the Linux kernel. The default line discipline that gets attached when a serial port gets. (tty->disc_data->read_buf, 0, BUFFER_SIZE); /* Initialize other necessary fields in the tty data. To set N_TCH as the default line discipline whenever the serial port connected to the touch.
This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
To receive this Complete Guide absolutely free.
In reply to: Hi, The transmit buffer is a circular buffer, see serialcore.c. Its size is UARTXMITSIZE, and currently it is set in include/linux/serialcore.h and it is equal to PAGESIZE. You can change this in include/linux/serialcore.h: #define SERIALXMITSIZE PAGESIZE The receive buffer rxbuf is also set to 4KB and it can be increased. This is done by modifying #define DEFAULTRXDMABUFSIZE 4096 /.
RX DMA buffer size./ in arch/arm/mach-omap2/serial.c Hope this helps. Best Regards, Yordan. In reply to: Hi, As you told i changed the page size to 8K, but i am facing crashing problem, kernel crashing after some time e.g execute ls command 5-10 times continuously on serial port. When 2095 space left in buffer kernel is crashing Please check the below logs 224.751795 kernel BUG at mm/slab.c:3109!
In reply to: Hi i will check that, one more thing i have seen after i enabled SLABDEBUG option 'slab corrupted' error is coming. UARTXMITSIZE 8192(8K) 18.952272 Slab corruption: namescache start=de010000, len=4096 18.958761 000: 0d 20 60 5f 5f 5f 5f 7c 5f 5f 5f 5f 5f 7c 20 20.
All content and materials on this site are provided 'as is'. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI. Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the of this site.
TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.