Page MenuHomeFreeBSD

lib/libcam/cam.3: note that cam_freeccb(3) with ccb == NULL is a no-op
ClosedPublic

Authored by ngie on Mar 12 2017, 5:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 25 2024, 12:37 PM
Unknown Object (File)
May 24 2024, 5:40 PM
Unknown Object (File)
Apr 27 2024, 11:34 PM
Unknown Object (File)
Apr 27 2024, 10:22 PM
Unknown Object (File)
Mar 23 2024, 4:58 PM
Unknown Object (File)
Mar 21 2024, 1:05 AM
Unknown Object (File)
Jan 8 2024, 7:42 PM
Unknown Object (File)
Nov 21 2023, 6:33 AM
Subscribers

Details

Summary

lib/libcam/cam.3: note that cam_freeccb(3) with ccb == NULL is a no-op

This allows me to accurately test this scenario, and for others to rely
on the behavior, instead of relying on knowledge obtained via code
inspection.

Wording borrowed from free(3).

MFC after: 1 week
Requested by: ken (D9928)
Sponsored by: Dell EMC Isilon

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie retitled this revision from lib/libcam/cam.3: note that cam_freeccb(3) is a no-op to lib/libcam/cam.3: note that cam_freeccb(3) with ccb == NULL is a no-op.Mar 12 2017, 6:06 AM
ngie edited the summary of this revision. (Show Details)

Note that the text doesn't match the description. The description is missing the word 'NULL' I think.

This revision is now accepted and ready to land.Mar 12 2017, 4:31 PM

Forget what I said about anything being missing, other than my ability to read for comprehension.

In D9969#206070, @imp wrote:

Forget what I said about anything being missing, other than my ability to read for comprehension.

The first submission description was a bit wonky. It makes sense why it was missed :).

wblock added inline comments.
head/lib/libcam/cam.3
309

Not always, but sometimes if/then sentences can be clearer or less halting by reversing the order and removing the comma (pause). For instance:

No action is taken if
.Va ccb
is
.Dv NULL .
ngie added inline comments.
head/lib/libcam/cam.3
309

*nod*