Basically he impemented a virtual device that had a fixed amount of
buffer space. You could write to/read from that storage space as usual,
with the one exception that once it was full you could continue to write
to it and the writes would succeed.
Basically the ideas was to create something that you could log to and
only the first x bytes would be logged. After that the writes would
still succeed but the data would be thrown away. "cat"ing the file would
then give you the first x bytes that had been stored.
How would you go about hooking in to the 2.4 char device code to do
-- Chris Friesen | MailStop: 043/33/F10 Nortel Networks | work: (613) 765-0557 3500 Carling Avenue | fax: (613) 765-2986 Nepean, ON K2H 8E9 Canada | email: firstname.lastname@example.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/