aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/unix/unix.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vlib/unix/unix.h b/src/vlib/unix/unix.h
index ea0d417b2b1..de607c0f490 100644
--- a/src/vlib/unix/unix.h
+++ b/src/vlib/unix/unix.h
@@ -151,6 +151,14 @@ unix_file_del (unix_main_t * um, unix_file_t * f)
pool_put (um->file_pool, f);
}
+always_inline void
+unix_file_del_by_index (unix_main_t * um, uword index)
+{
+ unix_file_t *uf;
+ uf = pool_elt_at_index (um->file_pool, index);
+ unix_file_del (um, uf);
+}
+
always_inline uword
unix_file_set_data_available_to_write (u32 unix_file_index,
uword is_available)