From owner-freebsd-drivers@FreeBSD.ORG Mon May 21 18:06:12 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FE2716A46B for ; Mon, 21 May 2007 18:06:12 +0000 (UTC) (envelope-from sastry.tumuluri@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by mx1.freebsd.org (Postfix) with ESMTP id 0D19D13C480 for ; Mon, 21 May 2007 18:06:11 +0000 (UTC) (envelope-from sastry.tumuluri@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so2325317nze for ; Mon, 21 May 2007 11:06:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=IM+WNjXFTXUR/rPpbgyvWrAnOeUdkCrLUhL3jC4P8WUDwa4nVk6/9HI6iL9yPNEqUvcrzlKvlooJTssb+Cjpcevr6Ya2ORN+Fs/+/hj89GNGl1W1Ms0D4HJZYMHhzk3025gD14+PsdCciEA3+N+7dqA2/g/EqM6ame5zXk2r0HI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=g3EVuE4Ywplo2MrMvIrTUU0lXeM0CPQHJF0QzJqC6TdAM23T272w6lY/v+yufsNXJ/sewDeHc2PbaschlG4XfaeNNv/IvBJlY5TOKE/IfxX6ZJJ1X8inQTi7b/YZkfI6prcLlvdByKJ7yw2DrNiQDCeg1ir13XORb+teNARNhMI= Received: by 10.114.15.1 with SMTP id 1mr2829417wao.1179769300793; Mon, 21 May 2007 10:41:40 -0700 (PDT) Received: by 10.115.54.19 with HTTP; Mon, 21 May 2007 10:41:40 -0700 (PDT) Message-ID: Date: Mon, 21 May 2007 23:11:40 +0530 From: "Sastry Tumuluri" Sender: sastry.tumuluri@gmail.com To: freebsd-drivers@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: f5af6dfa5f056444 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: devd is not catching some events? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 18:06:12 -0000 Friends, I am trying to use devd to catch and do some extra processing on LINK_UP and LINK_DOWN events for my net interfaces (e.g., notify my admin, log the event, ...). Tried this on both FreeBSD 6.1 and on FreeBSD 6.2. I used the following code (shows LINK_DOWN; wrote similar stuff for LINK_UP): notify 10 { match "type" "LINK_DOWN"; action "logger -s alert: Caught LINK_DOWN on dev: $device-name subsys: $subsystem"; }; Didn't work. I tried the above with both strict match conditions (using vendor, device and class matches) as well as very general (like the above). Didn't work. I ran killed devd and ran it in the foreground with "devd -dD". Then I logged into a different pty and used ifconfig lnc0 down #(lnc0 is my ethernet device). devd doesn't even seem to catch the event (no output at all - both on screen and in syslog). On the other hand, "nomatch" and "attach" messages do seem to get through (I wrote similar stuff for nomatch & attach, and they are showing up at bootup and in syslog). What could I be doing wrong? Regards, ==sas3==