docs/166864: the swi_add prototype is not updated in swi(9)

fuzhli fuzl at arraynetworks.com.cn
Thu Apr 12 07:10:10 UTC 2012


>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 at 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:



More information about the freebsd-doc mailing list