Hi,
What devc-ser8250 function is called during driver termination ?
I mean moment just after SIGTERM signal delivery (# slay devc-ser8250).
My goal is to implement custom shut-down scenario for serial driver.
Jacek
The devc-ser8250 shut-down
RE: The devc-ser8250 shut-down
I don't have the answer handy, but I suspect that at most the driver
will turn off transmission and set the control lines. I'm curious
as to what you mean by "custom shut-down". If you want to
send some final data, you would be better off to catch SIGTERM in your
application. If you are actually shutting the computer off, there
is no requirement that you shut down the driver at all.
will turn off transmission and set the control lines. I'm curious
as to what you mean by "custom shut-down". If you want to
send some final data, you would be better off to catch SIGTERM in your
application. If you are actually shutting the computer off, there
is no requirement that you shut down the driver at all.
Re: The devc-ser8250 shut-down
Hi,
touch them at all.
- send XOFF,
- reset all UART channels (dedicated to chipset/hardware),
- turn off RTS and DTR line.
Can anybody tell me where should I put code responsible
for driver termination ?
Do I need to cach SIGTERM signal ?
Can this be done in different way ?
Jacek
I can't agree about the control lines. For me the devc-ser8250 doesn'tI don't have the answer handy, but I suspect that at most the driver
will turn off transmission and set the control lines. I'm curious
touch them at all.
I would like to:as to what you mean by "custom shut-down". If you want to
- send XOFF,
- reset all UART channels (dedicated to chipset/hardware),
- turn off RTS and DTR line.
Custom shut-down must be implemented in serial driver.send some final data, you would be better off to catch SIGTERM in your
application. If you are actually shutting the computer off, there
is no requirement that you shut down the driver at all.
Can anybody tell me where should I put code responsible
for driver termination ?
Do I need to cach SIGTERM signal ?
Can this be done in different way ?
Jacek
Re: The devc-ser8250 shut-down
jacuswrote:
I can't agree about the control lines. For me the devc-ser8250
doesn't
touch them at all.
Well I did say "suspect".
This doesn't sound too challenging. By Reset, did you mean, do a chipI would like to:
- send XOFF,
- reset all UART channels (dedicated to chipset/hardware),
- turn off RTS and DTR line.
reset, or did you mean reset the UART parameters, eg. baud and
parity.
I ask because a chip reset would likely turn RTS and DTR off.
any important signals. For shutdown you probably want to catchCan anybody tell me where should I put code responsible
for driver termination ?
I don't think I understand the question. Obviously you need to catch
SIGPWR.
The code could be in the signal handler, or you could just set a flag
so that termination is handled outside of the handler. Of course,
then you need to ensure that this outside code is executed.
signals you can catch. Catching a signal is one obvious way to dealDo I need to catch SIGTERM signal ?
You might want to check the documentation on the various
with process termination.
If you know when you want the driver to stop, you could create aCan this be done in different way ?
custom IOCTL call, or even a custom QNX message.