| 1989 | } |
| 1990 | |
| 1991 | static int |
| 1992 | tcache_flush_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, |
| 1993 | void *oldp, size_t *oldlenp, void *newp, size_t newlen) { |
| 1994 | int ret; |
| 1995 | unsigned tcache_ind; |
| 1996 | |
| 1997 | WRITEONLY(); |
| 1998 | tcache_ind = UINT_MAX; |
| 1999 | WRITE(tcache_ind, unsigned); |
| 2000 | if (tcache_ind == UINT_MAX) { |
| 2001 | ret = EFAULT; |
| 2002 | goto label_return; |
| 2003 | } |
| 2004 | tcaches_flush(tsd, tcache_ind); |
| 2005 | |
| 2006 | ret = 0; |
| 2007 | label_return: |
| 2008 | return ret; |
| 2009 | } |
| 2010 | |
| 2011 | static int |
| 2012 | tcache_destroy_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, |
nothing calls this directly
no test coverage detected