From nobody Tue Jan 10 23:21:42 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 4Ns6K02cdgz2qllb for ; Tue, 10 Jan 2023 23:21:56 +0000 (UTC) (envelope-from jake@technologyfriends.net) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (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 4Ns6Jz2j9vz3Mjf for ; Tue, 10 Jan 2023 23:21:55 +0000 (UTC) (envelope-from jake@technologyfriends.net) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=technologyfriends.net header.s=google header.b=KQORGj2+; spf=none (mx1.freebsd.org: domain of jake@technologyfriends.net has no SPF policy when checking 2a00:1450:4864:20::12d) smtp.mailfrom=jake@technologyfriends.net; dmarc=none Received: by mail-lf1-x12d.google.com with SMTP id bu8so20853775lfb.4 for ; Tue, 10 Jan 2023 15:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technologyfriends.net; s=google; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3sV8xiiz83LsS/iCbZGpNkWtsmy1egmXatndWJ6Ep4Y=; b=KQORGj2++s4XuHyiOIWq8rzJyHWC/IGWKZG63dJVgT9ODdnyc+emv6EGFivKcZZUFU 0gbTZHiTKRk8ByB8VdWeb3Ex8Q/BxmXd0N2shIsECEf8z//B+WoGWCYiDUEAFDkZp1KY rEjZT4loZe6a6sDzgA+lJTOycIj4/SFcscLM1m0MT+1vhN3G6M8Cro7+fBcEmHh8MhA0 eFB+Ro1mWmEgKp59P2tGiUiSnxhd5yc7rBUz/3AvzFGzo2qkifoZZMwXGRQZA+Gik3PX u2GNLXkA9q3S7yE2uzzenU4plDaLU9j/suhPdMKPXqIEWR3xs5GhBeYIeOr/BX1/LMrQ PKcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3sV8xiiz83LsS/iCbZGpNkWtsmy1egmXatndWJ6Ep4Y=; b=WjzIJ7xSGiRX/QlekqQUDAuiePwRjJnbfLe3Uy5BzE4rGS3lFjE+mfrpkApjneQam7 6/tHzqG9ocIQe+LgApQX1ml++w8e65wArdqqLKIOwkZYvqJ6VJmyufkF29LWUDYP218d Ccyl0OFS6PkDK0jIolBiBTLMX2jFcUsTsVrN1hOkPnpKDsDuGHk9iWTmM+FLeYn9s1dW ht12gvpSAezgbUgMZQY5rw7FdWbjjtyGXsrD0QGnKwdJBe+kcY+01KbebY1rwmIauM2C YKlWDTsRzPfqqgBA2zuuscCnPckCU03H4NKrVKvoVOXvFVwTbY6riHhKgOJhxThgrRdz dOgg== X-Gm-Message-State: AFqh2kpUgb2MR7t/Lz2yL4IkV2QOGmBw+r/u0YSLix63Hb5XRJIC/OEA TbBdP7X5TsF26mA2Mi7nfDbik921gy3V47KWeI1dibSd0/OgoNF/v1o= X-Google-Smtp-Source: AMrXdXvwXDA9Ib+xrslMzvi7WVnhehTdUFc+A/luo1uDZwF21kwrJtTNO2iyFgbrl55f7UjAIW46vDZUyMUFxpayq4Q= X-Received: by 2002:a05:6512:3a86:b0:4cc:7ecb:32af with SMTP id q6-20020a0565123a8600b004cc7ecb32afmr928906lfu.393.1673392913048; Tue, 10 Jan 2023 15:21:53 -0800 (PST) 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: Jake Freeland Date: Tue, 10 Jan 2023 17:21:42 -0600 Message-ID: Subject: Syscalls: eventfd and timerfd To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="00000000000027024205f1f126b2" X-Spamd-Result: default: False [-2.09 / 15.00]; AUTH_NA_OR_FAIL(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.992]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; R_DKIM_PERMFAIL(0.00)[technologyfriends.net:s=google]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12d:from]; ARC_NA(0.00)[]; DMARC_NA(0.00)[technologyfriends.net]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[jake]; DKIM_TRACE(0.00)[technologyfriends.net:~]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Ns6Jz2j9vz3Mjf X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --00000000000027024205f1f126b2 Content-Type: text/plain; charset="UTF-8" Hi there, I am currently working on moving the linux_compat implementation of timerfd (in sys/compat/linux/linux_event.c) into its own FreeBSD syscall similar to what was done for eventfd. This is my first time implementing a syscall, so I have been following the eventfd implementation as a reference. I noticed that the eventfd syscall entries are absent from sys/kern/syscalls.master and I am not sure why. Was eventfd never formally added as a syscall entry or am I missing something? I was planning on adding timerfd entries to syscalls.master, but now I am unsure how to proceed. I apologize for my ignorance. This process is new to me. Thank you, Jake Freeland --00000000000027024205f1f126b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,

I am currently working on= moving the linux_compat implementation of
timerfd (in sys/compat= /linux/linux_event.c) into its own FreeBSD syscall
similar to wha= t was done for eventfd. This is my first time implementing
a sysc= all, so I have been following the eventfd implementation as a
ref= erence. I noticed that the eventfd syscall entries are absent from
sys/kern/syscalls.master and I am not sure why. Was eventfd never
formally added as a syscall entry or am I missing something? I was
planning on adding timerfd entries to syscalls.master, but now I a= m
unsure how to proceed.

I apologize for= my ignorance. This process is new to me.

Thank yo= u,
Jake Freeland
--00000000000027024205f1f126b2--