logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       Generated automatically by Doxygen for DPDK from the source code.

DPDK                                             Version 24.11.2                                   rte_uuid.h(3)

Detailed Description

       UUID related functions originally from libuuid

       Definition in file rte_uuid.h.

Function Documentation

boolrte_uuid_is_null(constrte_uuid_tuu)
       Test if UUID is all zeros.

       Parametersuu The uuid to check.

       Returns
           true if uuid is NULL value, false otherwise

   staticvoidrte_uuid_copy(rte_uuid_tdst,constrte_uuid_tsrc)[inline],[static]
       Copy uuid.

       Parametersdst Destination uuid
           src Source uuid

       Definition at line 61 of file rte_uuid.h.

   intrte_uuid_compare(constrte_uuid_ta,constrte_uuid_tb)
       Compare two UUID's

       Parametersa A UUID to compare
           b A UUID to compare

       Returns
           returns an integer less than, equal to, or greater than zero if UUID a is is less than, equal, or
           greater than UUID b.

   intrte_uuid_parse(constchar*in,rte_uuid_tuu)
       Extract UUID from string

       Parametersin Pointer to string of characters to convert
           uu Destination UUID

       Returns
           Returns 0 on success, and -1 if string is not a valid UUID.

   voidrte_uuid_unparse(constrte_uuid_tuu,char*out,size_tlen)
       Convert UUID to string

       Parametersuu UUID to format
           out Resulting string buffer
           len Sizeof the available string buffer

Macro Definition Documentation

#defineRTE_UUID_INIT(a,b,c,d,e)Value:.PP
           {       \
           ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, \
           ((a) >> 8) & 0xff, (a) & 0xff,      \
           ((b) >> 8) & 0xff, (b) & 0xff,      \
           ((c) >> 8) & 0xff, (c) & 0xff,      \
           ((d) >> 8) & 0xff, (d) & 0xff,      \
           ((e) >> 40) & 0xff, ((e) >> 32) & 0xff, \
           ((e) >> 24) & 0xff, ((e) >> 16) & 0xff, \
           ((e) >> 8) & 0xff, (e) & 0xff       \
       }
       Helper for defining UUID values for id tables.

       Definition at line 29 of file rte_uuid.h.

   #defineRTE_UUID_STRLEN(36+1)
       UUID string length

       Definition at line 41 of file rte_uuid.h.

Name

       rte_uuid.h

Synopsis

       #include <stdbool.h>
       #include <stddef.h>
       #include <string.h>

   Macros
       #define RTE_UUID_INIT(a,  b,  c,  d,  e)
       #define RTE_UUID_STRLEN   (36 + 1)

   Typedefstypedef unsigned char rte_uuid_t[16]

   Functions
       bool rte_uuid_is_null (const rte_uuid_t uu)
       static void rte_uuid_copy (rte_uuid_t dst, const rte_uuid_t src)
       int rte_uuid_compare (const rte_uuid_t a, const rte_uuid_t b)
       int rte_uuid_parse (const char *in, rte_uuid_t uu)
       void rte_uuid_unparse (const rte_uuid_t uu, char *out, size_t len)

Typedef Documentation

typedefunsignedcharrte_uuid_t[16]
       Struct describing a Universal Unique Identifier

       Definition at line 24 of file rte_uuid.h.

See Also