Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How to assign line discipline to particular serial port at kernel level?

share|improve this question

closed as off topic by Renan, Michael Mrozek Sep 25 '12 at 13:41

Questions on Unix & Linux Stack Exchange are expected to relate to Unix or Linux within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
You edit your question to explain what you are really trying to accomplish, so that we can answer your actual question. –  Michael Hampton Sep 24 '12 at 22:20
    
I am implementing a custom line discipline in order to communicate with the peripheral connected to the serial port. So during kernel boot itself i want to assign the custom line discipline to serial port which is connected to the peripheral. When i walk through the kernel source, i come to know that by default all the serial port will be assigned n_tty line discipline with this function tty_ldisc_init(struct tty_struct *tty). Now how can i identify the particular serial port and assign custom line discipline?. –  hussain Sep 25 '12 at 5:20
    
As a low-level programming question, I don't believe it's really on topic here. I think your best bet would be to post the question at our sister site, Stack Overflow. –  Michael Hampton Sep 25 '12 at 5:28
    
OK i will post my question in that site. Thanks for your comments. –  hussain Sep 25 '12 at 6:03