Document I/O traps

This commit is contained in:
RichardG867
2022-03-20 17:06:25 -03:00
parent 91434ea70a
commit 4f0c1a7370
3 changed files with 112 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ Most devices need a place to store their internal state. We discourage the use o
static void
foo_close(void *priv)
{
/* Get the state structure. */
/* Get the device state structure. */
foo_t *dev = (foo_t *) priv;
/* Do whatever you want, then deallocate the state structure. */