From nobody Mon Oct 30 22:33:35 2023 X-Original-To: freebsd-hackers@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 4SK7NG5g21z4yVmJ for ; Mon, 30 Oct 2023 22:33:50 +0000 (UTC) (envelope-from bsdunix5@gmail.com) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 4SK7ND41cYz4QlQ for ; Mon, 30 Oct 2023 22:33:48 +0000 (UTC) (envelope-from bsdunix5@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=QRQQMqvH; spf=pass (mx1.freebsd.org: domain of bsdunix5@gmail.com designates 2a00:1450:4864:20::42a as permitted sender) smtp.mailfrom=bsdunix5@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-32f78dcf036so1571117f8f.0 for ; Mon, 30 Oct 2023 15:33:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698705227; x=1699310027; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=7cOqYfv47M/IezNeor452CV+M87bopjDSLwGkfG5l4U=; b=QRQQMqvHLNOIq4F9xRYTi+nD9fiVSBWgyZASy7l5uLQhxEyPYoBX0ouZZ4NEp1nK1X QqxVTTqJobQvYjbi0avyvfL56rhxlrL08x/MEkb87GozzxNQysRb2QF8nKv9jnuVt4/i GebW6Hh8FTjjemnF6IGQWzhIOvfjnsqxT8QID05Ja3y+S7+mSuQYrV1cJhqR2Ii5hBwd Y4rsiuguUtbUuxCL5QvyZSLaypQZJ3f7/holIB/dmFFN5XqxaemY4C/Jfa3eX13pKu2w XcfExkRqubkgKGGfXrPOxok8QUxNIsQre9spUIWaV4on9QtOcqV4wcio2Xh1PrXW8FAb nnbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698705227; x=1699310027; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7cOqYfv47M/IezNeor452CV+M87bopjDSLwGkfG5l4U=; b=giCfHE8AGT4VrEOj2UDZdSV/8uu3Iwf/wU6nx44ChUa58uTjYyUWp+lBvDIImAwL9N olNOKu5MWQThq8ILNE11Kjkx/xrNxquToz6IdiHfZwtg3vX1fr7+B8PS7lTSQuCiHruj xNmQfFLW4CF8rJx58DsBIrHqa+ldIYEsm/FhTJhHiT902fYdUaTTDPotivc8k80NbZXY yxOkQ1NMgfY0pL9y96cqr3IOfwG09NodgW/xa3S7TKqudgC9P41i87IywlzhdoVC344b sxQSxN0K4RTZmhV1fYrUy8Gzco3GfkhyrdnyIRGnlC9qSUb+rQW4veNMUq7sYJpzriI1 e+YQ== X-Gm-Message-State: AOJu0Yw2Pg8D4wNPhPj6HC1Fuhgj6HOQpXjcK6CTqocerk/OUY+rBISM yjddzF0/ztWREhCm1dBkHZithBCRQ7C7d1SMmMwdjyjIdT8= X-Google-Smtp-Source: AGHT+IGwlclwynA1ZeRtvBrUgFknzAzZY+gPJGyzkPGwAcpHbcBfILi3ZSkGsW0R/VmvVdpETaAXWmE4Cn/23Q1VGF0= X-Received: by 2002:a5d:684e:0:b0:32d:8a7c:6efc with SMTP id o14-20020a5d684e000000b0032d8a7c6efcmr824873wrw.9.1698705226648; Mon, 30 Oct 2023 15:33:46 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: Alexander Date: Tue, 31 Oct 2023 00:33:35 +0200 Message-ID: Subject: system calls on FreeBSD To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000009ccf170608f6a122" X-Spamd-Result: default: False [-3.53 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.96)[-0.961]; NEURAL_HAM_SHORT(-0.57)[-0.571]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42a:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4SK7ND41cYz4QlQ X-Spamd-Bar: --- --0000000000009ccf170608f6a122 Content-Type: text/plain; charset="UTF-8" Greetings ! I am a newbie FreeBSD user, and I want to write one or two system calls on FreeBSD. I have a question, please : Why FreeBSD system calls take as an argument struct thread *t, en lieu de struct proc *p ? Thank you ! Alexander --0000000000009ccf170608f6a122 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings !

I am a newbie Fr= eeBSD user, and I want to write one or two system calls on FreeBSD.

I have a question, please :

Why = FreeBSD system calls take as an argument struct thread *t, en lieu de struc= t proc *p ?

Thank you !
Alexander

--0000000000009ccf170608f6a122--