qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 8/9] bsd-user: implement sysctlbyname(2)


From: Richard Henderson
Subject: Re: [PATCH 8/9] bsd-user: implement sysctlbyname(2)
Date: Sun, 12 Feb 2023 05:07:00 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/11/23 18:23, Kyle Evans wrote:
+/*
+ * This syscall was created to make sysctlbyname(3) more efficient.
+ * Unfortunately, because we have to fake some sysctls, we can't do that.

Can't do what?  Directly use sysctlbyname?


How about:

/*
  * This syscall was created to make sysctlbyname(3) more efficient, but
  * we can't really provide it in bsd-user.  Notably, we must always translate
  * the names independently since some sysctl values have to be faked
  * for the target environment, so it still has to break down to two syscalls
  * for the underlying implementation.
  */

Better, thanks.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]