From nobody Mon Apr 25 03:45:44 2022 X-Original-To: freebsd-drivers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9CF1F1A8D519 for ; Mon, 25 Apr 2022 03:45:58 +0000 (UTC) (envelope-from yusisamerican@gmail.com) Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KmrX520PKz4c6m for ; Mon, 25 Apr 2022 03:45:56 +0000 (UTC) (envelope-from yusisamerican@gmail.com) Received: by mail-vs1-xe32.google.com with SMTP id z144so3588972vsz.13 for ; Sun, 24 Apr 2022 20:45:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=fZY6LYJuMbn40AjLSjde/AtYEpcypSjWUqHu4eAJ75k=; b=QH8+ZGN+b0SLImVOu/OHP90QQY3Ii3RjvBBQlqahanfP31WmKjf8Z3845ji5DRSvBG kLDeHka2kxOJwdwiZsw1E+6kkmqOu5ANQWihTGHP+HvwzypI/EhJpOSNsOQvXdGlZE/5 TIrHkzMCoKQwAbbLtMikfUp8hCdq7x21pIw5rLuh7DNzwKSTe03hvbjYqAlBZwiXHzsL vKZ2IftGCwphR+xG1k9wkWi7rDAC/cfwTQtb4DrxGmqCKCEP4+ghOg+S8mvCGqA9s/gF 7XLKTutlgGQPgDKEfLDDJi+Acp3xmMeuodXR3dqCKKBzOWYcJXH48+/E0Y0ZcpvnXoVi dZSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=fZY6LYJuMbn40AjLSjde/AtYEpcypSjWUqHu4eAJ75k=; b=PXl2Iant5CpAqJ4CIMKaKkhWWyOCyEE/TLYOVXHAOgEkVewmAxpmBIWQV+Da78+MMS i0nrM/wDtLi4WnyaJAOTxuN+4gAGGhHvA6yvdH4qFHxicJWq2vw9O2lDngat3kGZDcuc z0m/glfBF/LoLVEBLeftb/rhVCXmO6jK4OxhEAC6ncc+2nkOwORDXaa3y1kBp+BmLvsp 5rwHCtlNyna5A9rN7gCeoqPqYrk/uhLA2GmuoO7zISaEKR2r+7pkilne3xsb4Mjht959 e/xIeeX+IZu2yVzoe2W6fOl8e99o7CUXoWR1gwvVd1sXX9omh/VCdr9XllrU591EouDX YsdQ== X-Gm-Message-State: AOAM533Tr9gRKC30CXkcGNebm8MpnztvkJOpgmbju8kWmbMJfPz6Itt5 7cNg9B0+J2xvTKmORMPYiUrsJ3qGrlDS+muuMgkYo5zD X-Google-Smtp-Source: ABdhPJxrgaAOPIcHD8u8nu5zuH+jp8GvBL4Dq32N1IEXM2mjjIAiBVcxpYsIfhwolH8N6tbv9VnOxMpjBlqUj1ZVzLQ= X-Received: by 2002:a05:6102:2747:b0:32c:cc66:4979 with SMTP id p7-20020a056102274700b0032ccc664979mr804631vsu.60.1650858356355; Sun, 24 Apr 2022 20:45:56 -0700 (PDT) List-Id: Writing device drivers for FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-drivers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-drivers@freebsd.org MIME-Version: 1.0 References: <20220423234616.GK88842@funkthat.com> In-Reply-To: <20220423234616.GK88842@funkthat.com> From: Yusuf Khan Date: Sun, 24 Apr 2022 22:45:44 -0500 Message-ID: Subject: Re: How do I write a driver and how do I find out what kernel API calls do? To: Yusuf Khan , freebsd-drivers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000e7b4e205dd7269b4" X-Rspamd-Queue-Id: 4KmrX520PKz4c6m X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=QH8+ZGN+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yusisamerican@gmail.com designates 2607:f8b0:4864:20::e32 as permitted sender) smtp.mailfrom=yusisamerican@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-drivers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e32:from]; MLMMJ_DEST(0.00)[freebsd-drivers]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --000000000000e7b4e205dd7269b4 Content-Type: text/plain; charset="UTF-8" Awesome, thanks! On Sat, Apr 23, 2022 at 6:46 PM John-Mark Gurney wrote: > Yusuf Khan wrote this message on Thu, Apr 21, 2022 at 18:17 -0500: > > Literally just copy paste the title here. > > > > Also where do I get documentation? > > Someone else replied w/ a number of helpful resources, > but the other thing to look at is section 9 man pages. > > Not all the interfaces are documented, but a large number of the > ones most often used are there. > > Also, some of the pages from 3 also apply to the kernel as well, > such as the usual string manipulation functions. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > --000000000000e7b4e205dd7269b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Awesome, thanks!

=
On Sat, Apr 23, 2022 at 6:46 PM John-= Mark Gurney <jmg@funkthat.com>= ; wrote:
Yusuf K= han wrote this message on Thu, Apr 21, 2022 at 18:17 -0500:
> Literally just copy paste the title here.
>
> Also where do I get documentation?

Someone else replied w/ a number of helpful resources,
but the other thing to look at is section 9 man pages.

Not all the interfaces are documented, but a large number of the
ones most often used are there.

Also, some of the pages from 3 also apply to the kernel as well,
such as the usual string manipulation functions.

--
=C2=A0 John-Mark Gurney=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Voice: +1 415 225 5579=

=C2=A0 =C2=A0 =C2=A0"All that I will do, has been done, All that I hav= e, has not."
--000000000000e7b4e205dd7269b4--