From owner-freebsd-hackers@freebsd.org Fri Jun 29 08:44:56 2018 Return-Path: Delivered-To: freebsd-hackers@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 157E31034C63 for ; Fri, 29 Jun 2018 08:44:56 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72BD4825EF for ; Fri, 29 Jun 2018 08:44:55 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: by mail-wr0-x22a.google.com with SMTP id u7-v6so8031452wrn.12 for ; Fri, 29 Jun 2018 01:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=97CqzZst7MFrW1EtmXa7+5bQgSQu4cWtzsqHRrRtUrY=; b=F4ZwI+py+94qqX620/qZg36GcNZzEV4opAGUW6WXkb10+eMmwFqzL86yAFUM84thm3 XnXsGTKKZMgakp+GOj3SPa6L6kwK6lU+wfdfXccUPIYfYeXLqfhPKJd+I4dGU1MH28W/ Pj7E9HEuIHAo/VEb8L0Vy/pUBQI2luDjERVejaWFUCJOkPrZxuUOh7/09DhiZy+chwjw 2gB5Wq7IMUwZljsY5azXd7pxr5KvlKyYsI96Bw/fF8RsCeEP9apmwCRUJr/mt7HUdOHb SnY0xa10Zv273GJR80+rbTKaOAUOHgC2OIAh2UaFBzJS62/HIpv8QnBtOrEi6meefGxb 3aJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=97CqzZst7MFrW1EtmXa7+5bQgSQu4cWtzsqHRrRtUrY=; b=geKlrzfBFZhjXA7cvtSHkVh8267TIzp+y18tObImF3VlkcAMF++onvh0RJlrQwWQyp qWfBp6HvnpAuL4chMocKqMpi9yLxoM631r7SbyUt3r33yNLe6mwAcNKsjgjMiJualABg 2cUzR0tMFx0fwcA81YBMGs+NHRSCMJyYinIhbEmReZ+4gGMJRSWNBxcOuh4FoAWhKnGU TsUGtPiWq5q41gY1Hahp+s3mUfwsVPlje+kXKK7GQIivWQuzKpf5VFtaD9YJcrn7+6zX 5cs2NCGLUn2eK74eGBL1tDNkRB2700BTtdKiU0KSFG9HJ2xZRVmvZh5EWtstJ59m6+x9 yAPw== X-Gm-Message-State: APt69E2L6ZOt5nfFYmfFKngn5JQsqE/kKVB2wke7Dj4cwuA4sQbq1Hqn u43pQ/F9GEdVr++CHOzXysm9Dg== X-Google-Smtp-Source: AAOMgpdqGLMa1cWZ/5g4MnHGRRrwzjPgCeU9X81W8IN4JjpUabs31VIX26fwUJ/4j2kWX4yl2lNs0Q== X-Received: by 2002:adf:ec89:: with SMTP id z9-v6mr11982038wrn.160.1530261893490; Fri, 29 Jun 2018 01:44:53 -0700 (PDT) Received: from zmaj.softwarehood.com (109-93-186-191.dynamic.isp.telekom.rs. [109.93.186.191]) by smtp.googlemail.com with ESMTPSA id r2-v6sm1137330wmb.39.2018.06.29.01.44.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 01:44:52 -0700 (PDT) To: freebsd-hackers@freebsd.org Cc: Tomas Weinfurt From: Ivan Radovanovic Subject: kevent behavior if more than one item in changelist Message-ID: <3b661c61-6067-a83c-f721-957d1a381b14@gmail.com> Date: Fri, 29 Jun 2018 10:44:51 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 08:44:56 -0000 Hi, Am I correct in understanding that passing more than one item in changelist for kevent(2) should be identical (from event subscription point of view) to calling kevent multiple times with one item in changelist? ie, these two be should equivalent struct kevent kev[2]; ... kevent(kqueue, kev, 2, NULL, 0, NULL); and struct kevent kev[2]; ... kevent(kqueue, kev, 1, NULL, 0, NULL); kevent(kqueue, kev + 1, 1, NULL, 0, NULL); At least for unix sockets with EVFILT_READ and EVFILT_WRITE those two are not equivalent (seems only first item in changelist is honored), so I wanted to double check if that is expected before filing bug report Kind regards, Ivan