summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-10-20 20:01:45 +0000
committerpjd <pjd@FreeBSD.org>2010-10-20 20:01:45 +0000
commit75395aabbce2558e0ce22875c08b0be5db68df05 (patch)
tree6b046e76d286be094a66252d90d2f59b4d830c15 /sys/geom
parenta431bc988cb49d9e5c49bea91150dd90fb0b88ae (diff)
downloadFreeBSD-src-75395aabbce2558e0ce22875c08b0be5db68df05.zip
FreeBSD-src-75395aabbce2558e0ce22875c08b0be5db68df05.tar.gz
- Add missing comments.
- Make a comment consistent with others.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/eli/g_eli.c6
-rw-r--r--sys/geom/eli/g_eli_integrity.c5
-rw-r--r--sys/geom/eli/g_eli_privacy.c5
3 files changed, 14 insertions, 2 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c
index 05402ce..4e15877 100644
--- a/sys/geom/eli/g_eli.c
+++ b/sys/geom/eli/g_eli.c
@@ -245,8 +245,10 @@ g_eli_orphan(struct g_consumer *cp)
}
/*
- * BIO_READ : G_ELI_START -> g_io_request -> g_eli_read_done -> g_eli_crypto_run -> g_eli_crypto_read_done -> g_io_deliver
- * BIO_WRITE: G_ELI_START -> g_eli_crypto_run -> g_eli_crypto_write_done -> g_io_request -> g_eli_write_done -> g_io_deliver
+ * BIO_READ:
+ * G_ELI_START -> g_io_request -> g_eli_read_done -> g_eli_crypto_run -> g_eli_crypto_read_done -> g_io_deliver
+ * BIO_WRITE:
+ * G_ELI_START -> g_eli_crypto_run -> g_eli_crypto_write_done -> g_io_request -> g_eli_write_done -> g_io_deliver
*/
static void
g_eli_start(struct bio *bp)
diff --git a/sys/geom/eli/g_eli_integrity.c b/sys/geom/eli/g_eli_integrity.c
index bafce96..0103a32 100644
--- a/sys/geom/eli/g_eli_integrity.c
+++ b/sys/geom/eli/g_eli_integrity.c
@@ -392,6 +392,11 @@ g_eli_auth_read(struct g_eli_softc *sc, struct bio *bp)
/*
* This is the main function responsible for cryptography (ie. communication
* with crypto(9) subsystem).
+ *
+ * BIO_READ:
+ * g_eli_start -> g_eli_auth_read -> g_io_request -> g_eli_read_done -> G_ELI_AUTH_RUN -> g_eli_auth_read_done -> g_io_deliver
+ * BIO_WRITE:
+ * g_eli_start -> G_ELI_AUTH_RUN -> g_eli_auth_write_done -> g_io_request -> g_eli_write_done -> g_io_deliver
*/
void
g_eli_auth_run(struct g_eli_worker *wr, struct bio *bp)
diff --git a/sys/geom/eli/g_eli_privacy.c b/sys/geom/eli/g_eli_privacy.c
index a6f572b..c2814bc 100644
--- a/sys/geom/eli/g_eli_privacy.c
+++ b/sys/geom/eli/g_eli_privacy.c
@@ -166,6 +166,11 @@ g_eli_crypto_write_done(struct cryptop *crp)
/*
* This is the main function responsible for cryptography (ie. communication
* with crypto(9) subsystem).
+ *
+ * BIO_READ:
+ * g_eli_start -> g_io_request -> g_eli_read_done -> G_ELI_CRYPTO_RUN -> g_eli_crypto_read_done -> g_io_deliver
+ * BIO_WRITE:
+ * g_eli_start -> G_ELI_CRYPTO_RUN -> g_eli_crypto_write_done -> g_io_request -> g_eli_write_done -> g_io_deliver
*/
void
g_eli_crypto_run(struct g_eli_worker *wr, struct bio *bp)
OpenPOWER on IntegriCloud