tech-kern archive

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

Re: procfs files vs symlink



On Tue, Jan 11, 2022 at 11:10:24AM +0100, Manuel Bouyer wrote:
> +static inline bool
> +procfs_proc_is_linux_compat(void)
> +{
> +	const char *emulname = curlwp->l_proc->p_emul->e_name;
> +	return (strncmp(emulname, "linux", 5) == 0);
> +}

Not a big deal, but wouldn't it be better to give this behaviour a
symbolic name and use a bit in e_flags for it? This seems to be mostly
unused so far (or I did something wrong when searching for it).

Martin


Home | Main Index | Thread Index | Old Index