From owner-freebsd-bugs Fri Jan 8 08:10:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA12072 for freebsd-bugs-outgoing; Fri, 8 Jan 1999 08:10:08 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA12064 for ; Fri, 8 Jan 1999 08:10:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id IAA10039; Fri, 8 Jan 1999 08:10:01 -0800 (PST) Date: Fri, 8 Jan 1999 08:10:01 -0800 (PST) Message-Id: <199901081610.IAA10039@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Assar Westerlund Subject: Re: kern/9359: implement support for adding syscalls in KLD modules Reply-To: Assar Westerlund Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/9359; it has been noted by GNATS. From: Assar Westerlund To: Doug Rabson Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/9359: implement support for adding syscalls in KLD modules Date: 08 Jan 1999 17:00:07 +0100 Doug Rabson writes: > > > I thought about the syscall number problem too and my best idea was > > > to extend the struct module_stat with a type specific field which > > > the syscall module handler could use to report the syscall index. > > > I've written myself a note to work on this (it shouldn't be hard). --- snip --- > struct module_stat ms; > ms.version = sizeof(ms); > modstat(modfind("mysyscall"), &ms); > syscall(ms.u.intval, ...); ok. Add adding support for `-p' in kldload with something that walkes the list for the newly added kld_file_stat with `kldfirstmod' and `modfnext' and calls a script with a list of the indexes and calling the script with these? /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message