Bug 83265
Summary: | TIOCMIWAIT semantics changed in 2.4.18-19.7 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | David J. Schwartz <davids> |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-02-01 22:03:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David J. Schwartz
2003-02-01 04:21:49 UTC
TIOCMWAIT has always taken "event" not &event. Is it possible that your code worked before because event sat at an address that had the right bits set to make it apparently work ? I suppose that's possible, but there's two reasons I don't think it's likely. First, several programs of mine that worked on the old kernel now don't work and do work with this change. It's hard to imagine how a kernel version change would affect the memory layout of the processes that way. Second, I've found web references both ways. http://www.mbsi.ca/pipermail/hsflinux/2002q2/000103.html http://www.microgate.com/products/sllinux/Programming.txt I'm going to look at the source code for earlier kernels and look at the TIOCMIWAIT implementation. I'm fairly certain I'll find it takes a pointer to the flags in the earlier implementations. Sorry, that reference should be: http://www.mbsi.ca/pipermail/hsflinux/2002q2/000094.html I checked the kernel source and it seems that you're right. I guess some other change made the code that previously happened to work (because the address happened to have the 0x40 bit set in it) no longer work. There doesn't appear to be any authoritative or even quasi-authoritative documentation for this ioctl and the examples I've found are split between the correct and incorrect form about 3 to 2 in favor of the correct format. I'll go with the majority, especially where the source agrees. Thanks for the prompt response and sorry for the false alarm. I'm going to send off emails to others having reliability problems with TIOCMIWAIT that are probably due to their addresses not happening to have the right bits set. |