From owner-freebsd-usb@freebsd.org Mon Feb 18 23:28:48 2019 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C2BF14EF563 for ; Mon, 18 Feb 2019 23:28:48 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) Received: from sonic305-22.consmr.mail.ne1.yahoo.com (sonic305-22.consmr.mail.ne1.yahoo.com [66.163.185.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FC598AA62 for ; Mon, 18 Feb 2019 23:28:44 +0000 (UTC) (envelope-from demetrioussharpe@netscape.net) X-YMail-OSG: d9uFZykVM1msiCqs0gFBW11gBySVVcTkDfZwBWD4U43dNtz1lJjZvQ6vf_w7x6J Vh6_Ay8Lj3PpnllzavVKrIyjWX8K_7B2g9p_EpLqn4It15dhD1odIvT90a046TZkVpggyO4BxkT3 b2wUBOWDrodEIvsXN8ikfUtlu.38a75LPeGDBknVi6yAyBvGe3Zh9nJB0QuRiq6v1A4eekJ9tue7 49x73FR0BfP2UkRRwTzIQ4NdR1x7RSydiZT0kCuLX4gELfVtC2x4QfWKb8lr7JNRtgoV9rxBEzc6 1.d9n6cyNi.tVtriECJUNIIuIQrVSLC1aveFjBJAKy3xHJzmIb1QNDFAw._zPq_39OmFrj8V_48H X3C9p0eRtSNH7eIuTwkfEgYoOrzIATvYbuqzyQyhMvTlaa8tyGGzmKVQRzyMl68SL85nRNwRhooD W9l008IT0LF3y4JkTIH.MetTMsHrgA3B.H4vXXLhpgjYJaAIvwxquu5fHNeOaFgPElUgwdILQmLw AKu1i6ZsIt58i0Y3zZJwAty_pzVoK2nMrQnwhldJUXdcov9eO_sAkzYLfxs9J4zvkDVReR2Uq5X0 w3BAnN0.ahL61hq82JZRFc_isoah37qzyqg.Ea3VInH_snz01WV.5ItGKcM9w.7iHt9cQJ8j_Z2O dvrTtjbzj8R6li5_Wi17willAjB.RdG26lSarcm4oFjWF.gjVzrTQlfqwXpGhi2jZNu8fe5sWmuK 2e3gpa91n7PqNOx43lQj7mu_KHO2pH1SlrHH5Bfd_T0Nn4rVFrNBR3kww11jGhtSl4uPwzywB.ZK CMG9M.ZUqfYMmeADmUpIV7MythvMB6ccCzJmPFNIY0KN8AxwLCkQdZWLalBsnnf6deMIYjMiHvcy 46berlSXdrAcOdgiZfR4MIndO8Z7la8vqzfFMYcGqRvcMtJHE4yyh8BaWDMkCaJdIxj7rw7r2Qh6 QWncqt_MZBGXHX6jEDBOpEMQVEIgh9P8GY8J7LfgLOcEui7347cWn8fMWkKZVLkBuQq7rPRfVe4N G5dRfosAHof9gTGod_5mpKlj7KIyLpNA1vh5GUj91Gb3t_ev0PQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Feb 2019 23:28:37 +0000 Received: from 75.3.110.170 (EHLO [192.168.10.101]) ([75.3.110.170]) by smtp410.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 091c5e8e3f73c806448020268285dd9c; Mon, 18 Feb 2019 23:28:36 +0000 (UTC) Subject: Re: Questions about the USB HID device drivers To: Warner Losh Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" References: <9c6a87dd-cf7c-d0eb-82f1-5e904baaf05f@selasky.org> <325834a2-d9f1-a1f4-dff1-7f724aeb4907@netscape.net> <6762c7c9-f9dc-f7d2-0b1f-c2f6e2816cd7@selasky.org> <3724cc29-b682-2395-bd95-cbfa418ad9f2@netscape.net> <0cbc66cd-9007-878e-8bc3-f623364729d4@selasky.org> From: "Apollo D. Sharpe, Sr." Message-ID: <2a062140-dc0f-e5e9-e1c9-ba557f963b41@netscape.net> Date: Mon, 18 Feb 2019 17:28:26 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Rspamd-Queue-Id: 1FC598AA62 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.32 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.163.184.0/21]; FREEMAIL_FROM(0.00)[netscape.net]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net,mx-aol.mail.gm0.yahoodns.net]; DKIM_TRACE(0.00)[netscape.net:+]; DMARC_POLICY_ALLOW(-0.50)[netscape.net,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[netscape.net]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.21)[-0.210,0]; R_DKIM_ALLOW(-0.20)[netscape.net:s=a2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.79)[0.793,0]; NEURAL_HAM_LONG(-0.78)[-0.781,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.88)[ip: (2.53), ipnet: 66.163.184.0/21(1.09), asn: 36646(0.87), country: US(-0.07)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[148.185.163.66.list.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2019 23:28:48 -0000 On 2/18/19 3:18 PM, Warner Losh wrote: > Yes and no. If the unique prefix has / in it, devfs puts it in a subdir. If I'm reading the code right, the unique prefix is basically driver_t::name. Is that correct? If so, I haven't seen a device name (in the entire tree) that has "/" in it's device name. Maybe I'm missing something here. > Way back in the days of yore, it was 100% userland to create the > hierarchy. You did your mknod and that was that. We had big tables of > major numbers that mapped device names to the kernel. > > There were problems with this: not the least was that major numbers > were a limited resource and soon ran out. Now, devfs manages > everything. You can get it to create many different hierarchies. see > devfs(8) for details. > I can imagine how much of a pain that was. Though, it looks as though not too many people bother changing beyond the default devfs.rules and devfs.conf files -they also seem to be a pain to deal with. It's a reasonable solution for servers, however it would be much more valuable on desktops to have /dev/input/* for various input devices. I guess I'm going to have to figure out how to make devices publish themselves in /dev based on their primary function. Thank you, and everyone else, for taking the time to explain the setup to me. -- Regards, Apollo D. Sharpe, Sr.