Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2012 07:03:24 GMT
From:      fuzhli <fuzl@arraynetworks.com.cn>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/166864: the swi_add prototype is not updated in swi(9)
Message-ID:  <201204120703.q3C73Op2057425@red.freebsd.org>
Resent-Message-ID: <201204120710.q3C7AAHj042582@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166864
>Category:       docs
>Synopsis:       the swi_add prototype is not updated in swi(9)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 12 07:10:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     fuzhli
>Release:        7.0, and 9.0
>Organization:
Array networks
>Environment:
%uname -a
FreeBSD Array.arraynetworks.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
>From FreeBSD7.0, the prototype of function swi_add() is changed: the first parameter is "struct intr_event **eventp", not the "struct ithd **ithdp". But the mannual docs not update this change till the latest FreeBSD9.0.

>How-To-Repeat:
%man 9 swi
SWI(9)                 FreeBSD Kernel Developer's Manual                SWI(9)

NAME
     swi_add, swi_sched -- register and schedule software interrupt handlers

SYNOPSIS
     #include <sys/param.h>
     #include <sys/bus.h>
     #include <sys/interrupt.h>

     extern struct ithd *tty_ithd;
     extern struct ithd *clk_ithd;
     extern void *net_ih;
     extern void *softclock_ih;
     extern void *vm_ih;

     int
     swi_add(struct ithd **ithdp, const char *name, driver_intr_t handler,
         void *arg, int pri, enum intr_type flags, void **cookiep);

     void
     swi_sched(void *cookie, int flags);

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204120703.q3C73Op2057425>