From owner-freebsd-hackers@freebsd.org Sun Sep 6 01:16:13 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D806A9CBB22 for ; Sun, 6 Sep 2015 01:16:13 +0000 (UTC) (envelope-from starkbeats@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F8BE8A3 for ; Sun, 6 Sep 2015 01:16:13 +0000 (UTC) (envelope-from starkbeats@gmail.com) Received: by lanb10 with SMTP id b10so32972537lan.3 for ; Sat, 05 Sep 2015 18:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version; bh=LqojoF8hTn7Emb9HSewhmwUfBvItrpHf+14L461SftM=; b=DEaDk5DSXE5WjGvSGatIJCIF0o2WS1P7y+GQ8zVFZcwI3EKduuqRyqdRy40H8NkFqN SiSMid88L3Gb+3/oEqSowfm/HsjNB/jc6Lk8U4TJlovWUiOnPa7S+ogFn3yVOoaqywLe ouesvuftm/xqcneUqQTrpW4pWbraXKSIfBaOQCq9aDIH0eYJWoWDFICzEJEQL5rCyi3e k3sTlLCq3AqigExwf7cq/TSOK0DTatKNJr6xRE5niCGyIvVJvv973LlpycOcgdadfIVw QeepkwoJm/TNG7lRXFHRm0UQ94WSmnTSAtVJcftYD+Zt88+Qi45Iz0Jea1qnZ/skYqUV rAQg== X-Received: by 10.152.20.228 with SMTP id q4mr10372717lae.74.1441502171205; Sat, 05 Sep 2015 18:16:11 -0700 (PDT) Received: from [192.168.0.2] (c83-251-248-85.bredband.comhem.se. [83.251.248.85]) by smtp.gmail.com with ESMTPSA id v6sm227742lby.49.2015.09.05.18.16.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Sep 2015 18:16:10 -0700 (PDT) From: Fredrik Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: modfind returns error on kernel module name Date: Sun, 6 Sep 2015 03:18:30 +0200 Message-Id: <6A80D610-39DC-4DAC-A4F5-1D03C8DCF572@gmail.com> To: FreeBSD Hackers Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 01:16:13 -0000 Hello I'm experimenting with a syscall KLD and are trying to find a loaded = module by name reference, but the modfind function always fails with = ENOENT. If I skip the modfind step and hard code in the value (which I = print when the module is loaded) it works as expected.=20 I use the exact name I use for my function and when I register the = function with the SYSCALL_MODULE macro. Any ideas what may be going on = here?