From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 1 09:06:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EA7B106569A for ; Mon, 1 Sep 2008 09:06:23 +0000 (UTC) (envelope-from ahornung@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by mx1.freebsd.org (Postfix) with ESMTP id EC4028FC1D for ; Mon, 1 Sep 2008 09:06:22 +0000 (UTC) (envelope-from ahornung@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2462940rvf.43 for ; Mon, 01 Sep 2008 02:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=WnphO1mbqxeO+gmn1tibZl9nY4J4ZwGoyokJZWXf4KE=; b=tUjGR2uOKqPs2UzPhMYn1RXrQU2DFYV0ZgrxOrtMJhepTdQqUro5II11ExlaksyoIg L/cN3AGeTnqWs0OcPhBtGRGfeLQLCggCn0X9TeO8SLev+DOS/haiIkuicc2k6hYhcc8v EMoWLBRhz3pg0UW7jt/8fcmU7Msdy3tYM40PY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=YXrf0zU5lwK8HEe8Wq3+w1V6LHqHLJspLfoV1LTrOwTiBPhRYxkeC+JwDVRmY6BUwL IY/2nlWsYjGEsdvf/BYzzHHpXJxBo0S7vDIIWclso+DanIIfir172aQrn3b1IvyGahKh tgf/HjWDguZ9H3PRTdfAV4nummzgM7pGWw/6I= Received: by 10.141.133.14 with SMTP id k14mr3301263rvn.127.1220259982345; Mon, 01 Sep 2008 02:06:22 -0700 (PDT) Received: by 10.141.96.2 with HTTP; Mon, 1 Sep 2008 02:06:22 -0700 (PDT) Message-ID: <10fba67b0809010206ya78c526n566e4e643f7a2b64@mail.gmail.com> Date: Mon, 1 Sep 2008 10:06:22 +0100 From: Alex To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Driver to Driver communication, with kobj? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 09:06:23 -0000 Hi, I was wondering what the best way of doing driver to driver communication is. I'm trying to enqueue an ata-command from a completely different driver (nothing to do with storage / ata). I would just bluntly use the ata_controlcmd() function, but it would require for me to know the device_t of the drive I'm trying to access. I don't know which device_t it would be, nor do I know how to find it out. If this is a no-go... I really need some help with kobj, as I can't figure it out fully... How do you use a kobj "exported" method from another driver? Thank you in advance, Alex