Lines Matching defs:ent
314 monitor_permit(struct mon_table *ent, enum monitor_reqtype type, int permit)
316 while (ent->f != NULL) {
317 if (ent->type == type) {
318 ent->flags &= ~MON_PERMIT;
319 ent->flags |= permit ? MON_PERMIT : 0;
322 ent++;
329 struct mon_table *ent = mon_dispatch;
331 while (ent->f != NULL) {
332 if (ent->flags & MON_AUTH) {
333 ent->flags &= ~MON_PERMIT;
334 ent->flags |= permit ? MON_PERMIT : 0;
336 ent++;
343 struct mon_table *ent;
374 authenticated = (monitor_read(pmonitor, mon_dispatch, &ent) == 1);
392 if (!(ent->flags & MON_AUTHDECIDE))
394 __func__, ent->type);
411 if (ent->flags & (MON_AUTHDECIDE|MON_ALOG)) {
538 monitor_read(struct monitor *pmonitor, struct mon_table *ent,
576 while (ent->f != NULL) {
577 if (ent->type == type)
579 ent++;
582 if (ent->f != NULL) {
583 if (!(ent->flags & MON_PERMIT))
586 ret = (*ent->f)(pmonitor->m_sendfd, &m);
590 if (ent->flags & MON_ONCE) {
593 ent->flags &= ~MON_PERMIT;
597 *pent = ent;