• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/samba-3.0.13/source/lib/

Lines Matching defs:msg_type

59 	int msg_type;
68 int msg_type;
69 void (*fn)(int msg_type, pid_t pid, void *buf, size_t len);
86 static void ping_message(int msg_type, pid_t src, void *buf, size_t len)
168 static BOOL message_send_pid_internal(pid_t pid, int msg_type, const void *buf, size_t len,
186 rec.msg_type = msg_type;
291 BOOL message_send_pid(pid_t pid, int msg_type, const void *buf, size_t len, BOOL duplicates_allowed)
293 return message_send_pid_internal(pid, msg_type, buf, len, duplicates_allowed, 0);
300 BOOL message_send_pid_with_timeout(pid_t pid, int msg_type, const void *buf, size_t len,
303 return message_send_pid_internal(pid, msg_type, buf, len, duplicates_allowed, timeout);
380 static BOOL message_recv(char *msgs_buf, size_t total_len, int *msg_type, pid_t *src, char **buf, size_t *len)
405 *msg_type = rec.msg_type;
414 Notice that all dispatch handlers for a particular msg_type get called,
422 int msg_type;
440 for (buf = msgs_buf; message_recv(msgs_buf, total_len, &msg_type, &src, &buf, &len); buf += len) {
441 DEBUG(10,("message_dispatch: received msg_type=%d src_pid=%u\n",
442 msg_type, (unsigned int) src));
445 if (dfn->msg_type == msg_type) {
446 DEBUG(10,("message_dispatch: processing message of type %d.\n", msg_type));
447 dfn->fn(msg_type, src, len ? (void *)buf : NULL, len);
453 "msg_type %d in pid %u\n",
454 msg_type, (unsigned int)sys_getpid()));
466 void message_register(int msg_type,
467 void (*fn)(int msg_type, pid_t pid, void *buf, size_t len))
477 dfn->msg_type = msg_type;
492 void message_deregister(int msg_type)
498 if (dfn->msg_type == msg_type) {
506 int msg_type;
539 if (!message_send_pid(crec.pid, msg_all->msg_type,
567 BOOL message_send_all(TDB_CONTEXT *conn_tdb, int msg_type,
574 msg_all.msg_type = msg_type;
575 if (msg_type < 1000)
577 else if (msg_type > 1000 && msg_type < 2000)
579 else if (msg_type > 2000 && msg_type < 2100)
581 else if (msg_type > 2100 && msg_type < 3000)
583 else if (msg_type > 3000 && msg_type < 4000)