nbd_get_tls_priority(3)

✨ nbd_get_tls_priority ✨

okay so this is a libnbd(3) page, bestie β€” buckle up πŸ’…

🌸 NAME 🌸

nbd_get_tls_priority β€” literally just gets the current TLS priority. that's it. that's the whole job πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libnbd.h>

char * nbd_get_tls_priority (
         struct nbd_handle *h
       );

πŸ’– DESCRIPTION πŸ’–

Get the current TLS priority. iconic behavior honestly πŸ”₯

So like β€” if nobody ever called nbd_set_tls_priority(3) before you got here? no worries. in that case this returns the compile time default TLS priority. the factory setting, the og vibe, the one it was born with ✨

🌈 RETURN VALUE 🌈

This call returns a string. The caller must free the returned string to avoid a memory leak. bestie please free it 😭 don't just leave it lying around, that's how leaks happen and leaks are not the vibe.

πŸ’€ ERRORS πŸ’€

On error NULL is returned. yep. nothing. void. the call said πŸ™ˆ

Refer to "ERROR HANDLING" in libnbd(3) for how to get further details of the error β€” that's where the actual tea is.

The following parameters must not be NULL: h. For more information see "Non-NULL parameters" in libnbd(3). so like, hand it a real handle, fr fr 🫢

⭐ VERSION ⭐

This function first appeared in libnbd 1.24. a little baby πŸ‘‘

If you need to test if this function is available at compile time check if the following macro is defined:

#define LIBNBD_HAVE_NBD_GET_TLS_PRIORITY 1

iykyk 🧚

πŸ“ SEE ALSO πŸ“

πŸ’œ AUTHORS πŸ’œ

  • Eric Blake
  • Richard W.M. Jones

legends, no cap πŸ‘‘

Copyright Red Hat

πŸŽ€ LICENSE πŸŽ€

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA


and that's the page!! πŸ’–βœ¨ this was brought to you by libnbd-1.24.4, dated 2026-10-13 β€” mwah, go free your strings πŸ«ΆπŸ’…

πŸ“¦ where this page comes from