From owner-freebsd-questions Tue Aug 19 08:04:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA11579 for questions-outgoing; Tue, 19 Aug 1997 08:04:49 -0700 (PDT) Received: from blizzard.wise.edt.ericsson.se (blizzard-ext.wise.edt.ericsson.se [194.237.142.2]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA11573 for ; Tue, 19 Aug 1997 08:04:43 -0700 (PDT) Received: from kkb3 (kkb3.kk.etx.ericsson.se [130.100.97.23]) by blizzard.wise.edt.ericsson.se (8.7.5/8.7.3/glacier-0.9) with SMTP id RAA26855 for ; Tue, 19 Aug 1997 17:04:22 +0200 (MET DST) Received: from kk662.kk.etx.ericsson.se by kkb3 (SMI-8.6/LME-2.2.6) id QAA06550; Tue, 19 Aug 1997 16:56:19 +0200 From: erakupa@kk.etx.ericsson.se (ETX-B-SL Martti Kuparinen) Received: by kk662.kk.etx.ericsson.se (SMI-8.6/client-1.6) id QAA12485; Tue, 19 Aug 1997 16:56:21 +0200 Date: Tue, 19 Aug 1997 16:56:21 +0200 Message-Id: <199708191456.QAA12485@kk662.kk.etx.ericsson.se> To: freebsd-questions@FreeBSD.ORG Subject: poll() for ethernet devices X-Sun-Charset: US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hello all, I am running FreeBSD 2.2.2 on a PPro 200 MHz PC. I have created a loadable kernel module which will schedule IP-packets on user-defineable interfaces and priorities. But it doesn't work correctly now :-( What I want to do in the general ether_output() is basically this: prioritize packets check if there's more packets to read <-----------+ if yes | read the next packet and insert into queue | else | start output | | How can I check if there are packets to read in some/all interfaces and force the kernel to perform the read (and eventually write, which calls ether_output)? Thanks in advance, Martti