Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 2010 10:28:10 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Selphie Keller <selphie.keller@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Konstantin Belousov <kib@freebsd.org>
Subject:   Re: SYSCALL_MODULE() macro and modfind() issues
Message-ID:  <4CC6830A.10701@icyb.net.ua>
In-Reply-To: <AANLkTimVUzV3v9=y%2BWuuf%2B1fC4OYxD2Gs4j%2B=SO-M%2BP9@mail.gmail.com>
References:  <AANLkTimVUzV3v9=y%2BWuuf%2B1fC4OYxD2Gs4j%2B=SO-M%2BP9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 26/10/2010 01:01 Selphie Keller said the following:
> hi fbsd-hackers,
> 
> Noticed a issue in 8.1-release, 8.1p1-release and 8.1-stable
> amd64/i386, to where modfind() will no longer find pmap_helper for the
> /usr/ports/sysutils/pmap port, or other syscall modules using
> SYSCALL_MODULE() macro.
> The issue is that modfind() function no longer finds any modules using
> SYSCALL_MODULE() macro to register the kernel module. Making it
> difficult for userland apps to call the syscall provided. modfind()
> always returns -1 which prevents modstat() from getting the required
> information to perform the syscall.
> 
> Also tested, the demo syscall module:

After commit r205320 and, apparently, its MFC you need to prefix the module with
"sys/".  For example:
modstat(modfind("sys/syscall"), &stat);

P.S.
Perhaps a KPI breakage in a stable branch?
-- 
Andriy Gapon



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