• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/ntp/sntp/libevent/

Lines Matching refs:bufferevent

44    reading or writing on a bufferevent.
50 On a filtering bufferevent, for writing: used when the underlying
51 bufferevent's write buffer has been filled up to its watermark
55 /* On a base bufferevent: when we have emptied a bandwidth buckets */
57 /* On a base bufferevent: when we have emptied the group's bandwidth bucket. */
59 /* On a socket bufferevent: can't do any operations while we're waiting for
62 /* On a base bufferevent, for reading: used when a filter has choked this
63 * (underlying) bufferevent because it has stopped reading from it. */
113 * within every bufferevent lock: if you are holding this lock, do
114 * not assume you can lock another bufferevent. */
118 /** Fields for rate-limiting a single bufferevent. */
126 /** The rate-limiting group for this bufferevent, or NULL if it is
130 /* This bufferevent's current limits. */
132 /* Pointer to the rate-limit configuration for this bufferevent.
136 /* Timeout event used when one this bufferevent's buckets are
141 /** Parts of the bufferevent structure that are shared among all bufferevent
144 /** The underlying bufferevent structure. */
145 struct bufferevent bev;
150 /** If set, we should free the lock when we free the bufferevent. */
162 * getting around the bufferevent abstraction. */
188 /** The options this bufferevent was constructed with */
191 /** Current reference count for this bufferevent. */
194 /** Lock for this bufferevent. Shared by the inbuf and the outbuf.
206 /** Rate-limiting information for this bufferevent */
225 Implementation table for a bufferevent: holds function pointers and other
226 information to make the various bufferevent types work.
229 /** The name of the bufferevent's type. */
232 bufferevent structure?
237 struct bufferevent bev;
243 /** Enables one or more of EV_READ|EV_WRITE on a bufferevent. Does
247 int (*enable)(struct bufferevent *, short);
249 /** Disables one or more of EV_READ|EV_WRITE on a bufferevent. Does
253 int (*disable)(struct bufferevent *, short);
255 /** Detatches the bufferevent from related data structures. Called as
257 void (*unlink)(struct bufferevent *);
260 in this implementation. Called when the bufferevent is
263 void (*destruct)(struct bufferevent *);
265 /** Called when the timeouts on the bufferevent have changed.*/
266 int (*adj_timeouts)(struct bufferevent *);
269 int (*flush)(struct bufferevent *, short, enum bufferevent_flush_mode);
272 int (*ctrl)(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *);
291 /** Initialize the shared parts of a bufferevent. */
296 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what);
299 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what);
303 void bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what);
306 void bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what);
314 Disable a bufferevent. Equivalent to bufferevent_disable(), but
320 @param bufev the bufferevent to be disabled
325 int bufferevent_disable_hard_(struct bufferevent *bufev, short event);
327 /** Internal: Set up locking on a bufferevent. If lock is set, use it.
329 int bufferevent_enable_locking_(struct bufferevent *bufev, void *lock);
331 void bufferevent_incref_(struct bufferevent *bufev);
334 void bufferevent_incref_and_lock_(struct bufferevent *bufev);
336 * the bufferevent.*/
337 int bufferevent_decref_(struct bufferevent *bufev);
339 * unlocking it otherwise. Returns 1 if it freed the bufferevent. */
340 int bufferevent_decref_and_unlock_(struct bufferevent *bufev);
344 void bufferevent_run_readcb_(struct bufferevent *bufev, int options);
347 void bufferevent_run_writecb_(struct bufferevent *bufev, int options);
351 void bufferevent_run_eventcb_(struct bufferevent *bufev, short what, int options);
357 static inline void bufferevent_trigger_nolock_(struct bufferevent *bufev, short iotype, int options);
362 bufferevent_trigger_nolock_(struct bufferevent *bufev, short iotype, int options)
383 void bufferevent_init_generic_timeout_cbs_(struct bufferevent *bev);
388 int bufferevent_generic_adj_timeouts_(struct bufferevent *bev);
390 enum bufferevent_options bufferevent_get_options_(struct bufferevent *bev);
412 /** Internal: Given a bufferevent, return its corresponding
420 /** Internal: Grab the lock (if any) on a bufferevent */
426 /** Internal: Release the lock (if any) on a bufferevent */