Date: Sat, 10 Nov 2001 22:24:11 GMT From: Simon Dick <simond@irrelevant.org> To: FreeBSD-gnats-submit@freebsd.org Subject: misc/31905: Update make_device_driver.sh to work post-KSE Message-ID: <200111102224.fAAMOBw02878@laptop.internal.irrelevant.org>
next in thread | raw e-mail | index | archive | help
>Number: 31905 >Category: misc >Synopsis: Update make_device_driver.sh to work post-KSE >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 10 14:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Simon Dick >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD laptop.internal.irrelevant.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Nov 5 20:54:45 GMT 2001 root@laptop.internal.irrelevant.org:/usr/obj/usr/src-current/sys/GENERIC i386 >Description: Update make_device_driver.sh to generate compilable kernel modules as the definition for functions changed from struct proc to d_thread_t >How-To-Repeat: >Fix: This seems to work fine for me, but someone else should check it through before commiting it (as I'm only learning about drivers and stuff :) Index: make_device_driver.sh =================================================================== RCS file: /usr/nfs/ncvs/src/share/examples/drivers/make_device_driver.sh,v retrieving revision 1.17 diff -r1.17 make_device_driver.sh 850c850 < ${1}ioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) --- > ${1}ioctl (dev_t dev, u_long cmd, caddr_t data, int flag, d_thread_t *p) 871c871 < ${1}open(dev_t dev, int oflags, int devtype, struct proc *p) --- > ${1}open(dev_t dev, int oflags, int devtype, d_thread_t *p) 882c882 < ${1}close(dev_t dev, int fflag, int devtype, struct proc *p) --- > ${1}close(dev_t dev, int fflag, int devtype, d_thread_t *p) 941c941 < ${1}poll(dev_t dev, int which, struct proc *p) --- > ${1}poll(dev_t dev, int which, d_thread_t *p) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111102224.fAAMOBw02878>