Lines Matching defs:handler
126 // Find handler for this packet
133 net_device_handler* handler = iterator.Next();
135 // If the handler returns B_OK, it consumed the buffer - first
136 // handler wins.
137 if ((handler->type == genericType
138 || handler->type == specificType)
139 && handler->func(handler->cookie, device, buffer) == B_OK)
152 /*! The domain's device receive handler - this will inject the net_buffers into
153 the protocol layer (the domain's registered receive handler).
671 // see if such a handler already for this device
675 while (net_device_handler* handler = iterator.Next()) {
676 if (handler->type == type)
680 // Add new handler
682 net_device_handler* handler = new(std::nothrow) net_device_handler;
683 if (handler == NULL)
686 handler->func = receiveFunc;
687 handler->type = type;
688 handler->cookie = cookie;
689 interface->receive_funcs.Add(handler);
694 /*! Unregisters a previously registered device handler. */
707 // search for the handler
711 while (net_device_handler* handler = iterator.Next()) {
712 if (handler->type == type) {
715 delete handler;