Contents

buf_wcred

Get the credential associated with a buffer for writing.

Declaration

kauth_cred_t buf_wcred(buf_t bp);

Parameters

  • bp:

    Buffer whose credential to grab.

Return Value

Credential if it exists, else NULL.

Discussion

No reference is taken; if the credential is to be held on to persistently, an additional reference must be taken with kauth_cred_ref.

See Also

Buffers