openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libmount/src/tab.c
int mnt_table_set_cache(struct libmnt_table* tb, struct libmnt_cache* mpc)
{
    if (!tb)
        return -EINVAL;

    mnt_ref_cache(mpc);         /* new */
    mnt_unref_cache(tb->cache); /* old */
    tb->cache = mpc;
    return 0;
}
/**
 * mnt_table_set_cache:
 * @tb: pointer to tab
 * @mpc: pointer to struct libmnt_cache instance
 *
 * Sets up a cache for canonicalized paths and evaluated tags (LABEL/UUID). The
 * cache is recommended for mnt_table_find_*() functions.
 *
 * The cache could be shared between more tabs. Be careful when you share the
 * same cache between more threads -- currently the cache does not provide any
 * locking method.
 *
 * This function increments cache reference counter. It's recommended to use
 * mnt_unref_cache() after mnt_table_set_cache() if you want to keep the cache
 * referenced by @tb only.
 *
 * See also mnt_new_cache().
 *
 * Returns: 0 on success or negative number in case of error.
 */
@tb: pointer to tab
@mpc: pointer to struct libmnt_cache instance

Sets up a cache for canonicalized paths and evaluated tags (LABEL/UUID). The
cache is recommended for mnt_table_find_*() functions.

The cache could be shared between more tabs. Be careful when you share the
same cache between more threads -- currently the cache does not provide any
locking method.

This function increments cache reference counter. It's recommended to use
mnt_unref_cache() after mnt_table_set_cache() if you want to keep the cache
referenced by @tb only.



0 on success or negative number in case of error.
@tb : pointer to tab @mpc : pointer to struct libmnt_cache instance Sets up a cache for canonicalized paths and evaluated tags ( LABEL / UUID ) . The cache is recommended for mnt_table_find_ * () functions . The cache could be shared between more tabs . Be careful when you share the same cache between more threads -- currently the cache does not provide any locking method . This function increments cache reference counter . It ' s recommended to use mnt_unref_cache () after mnt_table_set_cache () if you want to keep the cache referenced by @tb only . 0 on success or negative number in case of error .
int mnt_table_set_cache(struct libmnt_table* tb, struct libmnt_cache* mpc)
{
    if (!tb)
        return -EINVAL;
    mnt_ref_cache(mpc);         
    mnt_unref_cache(tb->cache); 
    tb->cache = mpc;
    return 0;
}
int mnt_table_set_cache ( struct libmnt_table * tb , struct libmnt_cache * mpc ) { if ( ! tb ) return - EINVAL ; mnt_ref_cache ( mpc ) ; mnt_unref_cache ( tb -> cache ) ; tb -> cache = mpc ; return 0 ; }
mnt_table_set_cache:
 @tb: pointer to tab
 @mpc: pointer to struct libmnt_cache instance
mnt_table_set_cache : @tb : pointer to tab @mpc : pointer to struct libmnt_cache instance
/* new */ /* old */