[PATCH] enabling LKM for custom beeper

Christian W. Zuckschwerdt (zany@triq.net)
Sun, 28 Jan 2001 22:51:12 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--1787177644-355565796-980710794=:4850
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <0101282139461.4850@localhost>

Hi Linus, Alan,

this patch has proven to be stable an useable. It hasn't changed
since 2.2.13.

The patch affects kd_mksound and kd_nosound which are responsible for
generating sound.
The default behaviour won't be changed but it's now possible for a LKM to
hook into these calls and change the way the system bell rings.

Changes in struct timer_list made a separate patch for 2.4.0 necessary.

Please incorporante into next release of 2.{2,4} if appropriate; TIA,

cu.
:
Christian

--1787177644-355565796-980710794=:4850
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="oplbeep.kernel-patch.2.2.13"
Content-Transfer-Encoding: BASE64
Content-ID: <0101282039540.4850@localhost>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="oplbeep.kernel-patch.2.2.13"

LS0tIGRyaXZlcnMvY2hhci92dC5jLm9yaWcJTW9uIEF1ZyAgOSAyMTowNDoz
OSAxOTk5DQorKysgZHJpdmVycy9jaGFyL3Z0LmMJU3VuIEphbiAyMyAxNzox
MDoyOCAyMDAwDQpAQCAtOTIsMTggKzkyLDIwIEBADQogICAgIHx8IChkZWZp
bmVkKF9fbWlwc19fKSAmJiAhZGVmaW5lZChDT05GSUdfU0dJKSkNCiANCiBz
dGF0aWMgdm9pZA0KLWtkX25vc291bmQodW5zaWduZWQgbG9uZyBpZ25vcmVk
KQ0KK19rZF9ub3NvdW5kKHVuc2lnbmVkIGxvbmcgaWdub3JlZCkNCiB7DQog
CS8qIGRpc2FibGUgY291bnRlciAyICovDQogCW91dGIoaW5iX3AoMHg2MSkm
MHhGQywgMHg2MSk7DQogCXJldHVybjsNCiB9DQogDQotdm9pZA0KK3ZvaWQg
KCprZF9ub3NvdW5kK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lYm9vdF9u
b3RpZmllcik7DQogRVhQT1JUX1NZTUJPTChfY3R5cGUpOw0KK0VYUE9SVF9T
WU1CT0woa2Rfbm9zb3VuZCk7DQorRVhQT1JUX1NZTUJPTChrZF9ta3NvdW5k
KTsNCiBFWFBPUlRfU1lNQk9MKHNlY3VyZV90Y3Bfc2VxdWVuY2VfbnVtYmVy
KTsNCiBFWFBPUlRfU1lNQk9MKGdldF9yYW5kb21fYnl0ZXMpOw0KIEVYUE9S
VF9TWU1CT0woc2VjdXJlYml0cyk7DQotLS0gaW5jbHVkZS9saW51eC92dF9r
ZXJuLmgub3JpZwlGcmkgT2N0IDIyIDAxOjQ4OjQxIDE5OTkNCisrKyBpbmNs
dWRlL2xpbnV4L3Z0X2tlcm4uaAlTdW4gSmFuIDIzIDE3OjEwOjI4IDIwMDAN
CkBAIC0zMCw3ICszMCw3IEBADQogCXN0cnVjdCB3YWl0X3F1ZXVlICpwYXN0
ZV93YWl0Ow0KIH0gKnZ0X2NvbnNbTUFYX05SX0NPTlNPTEVTXTsNCiANCi12
b2lkICgqa2RfbWtzb3VuZCkodW5zaWduZWQgaW50IGh6LCB1bnNpZ25lZCBp
bnQgdGlja3MpOw0KK2V4dGVybiB2b2lkICgqa2RfbWtzb3VuZCkodW5zaWdu
ZWQgaW50IGh6LCB1bnNpZ25lZCBpbnQgdGlja3MpOw0KIA0KIC8qIGNvbnNv
bGUuYyAqLw0KIA0K
--1787177644-355565796-980710794=:4850
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="oplbeep.kernel-patch.2.4.0"
Content-Transfer-Encoding: BASE64
Content-ID: <0101282140230.4850@localhost>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="oplbeep.kernel-patch.2.4.0"

LS0tIGxpbnV4LTIuNC4wLXByaXN0aW5lL2RyaXZlcnMvY2hhci92dC5jCVRo
dSBKYW4gIDQgMjI6MDA6NTUgMjAwMQ0KKysrIGxpbnV4LTIuNC4wL2RyaXZl
cnMvY2hhci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JUX1NZTUJPTChrZF9ub3NvdW5kKTsNCitFWFBP
UlRfU1lNQk9MKGtkX21rc291bmQpOw0KIEVYUE9SVF9TWU1CT0woc2VjdXJl
X3RjcF9zZXF1ZW5jZV9udW1iZXIpOw0KIEVYUE9SVF9TWU1CT0woZ2V0X3Jh
bmRvbV9ieXRlcyk7DQogRVhQT1JUX1NZTUJPTChzZWN1cmViaXRzKTsNCg==
--1787177644-355565796-980710794=:4850--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/