]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/crc32c: document interface
authorSage Weil <sage@inktank.com>
Sat, 28 Sep 2013 04:05:27 +0000 (21:05 -0700)
committerSage Weil <sage@inktank.com>
Wed, 16 Oct 2013 16:28:14 +0000 (09:28 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/include/crc32c.h

index 49d68474d68bfce2e1fb3feb33333dae4c5af5b9..a568edabe1914cbafd1a19594cd8ebcb8b8def60 100644 (file)
@@ -14,8 +14,15 @@ extern ceph_crc32c_func_t ceph_crc32c_func;
 
 extern ceph_crc32c_func_t ceph_choose_crc32(void);
 
-/*
- * common entry point; use this!
+/**
+ * calculate crc32c
+ *
+ * Note: if the data pointer is NULL, we calculate a crc value as if
+ * it were zero-filled.
+ *
+ * @param crc initial value
+ * @param data pointer to data buffer
+ * @param length length of buffer
  */
 static inline uint32_t ceph_crc32c(uint32_t crc, unsigned char const *data, unsigned length)
 {