Skip to contentSkip to conversation

Can we remove the sysfs() system call?

DISCUSSION Christian Brauner 2 participants 3 messages Apr 14, 2025 – Apr 15, 2025 VFS

lore
Share & tools
lore

Christian Brauner

author maintainer
#0 lore raw

Hey Linus,

we've been carrying sysfs() around since forever and we marked the sysfs() system call as deprecated in 2018 iiuc.

Should we try and get rid of this odd system call or at least flip the config switch to default to N instead of Y?

(Another candidate that comes to mind is uselib().)

Christian

#1 lore raw
Quoted 6 lines · Christian Brauner

we've been carrying sysfs() around since forever and we marked the sysfs() system call as deprecated in 2018 iiuc.

Should we try and get rid of this odd system call or at least flip the config switch to default to N instead of Y?

We can certainly try. But I bet it's used somewhere. Deprecation warnings tend to mean nothing ;(

Quoted 1 line

(Another candidate that comes to mind is uselib().)

That one is already 'default n' since a few years ago, and only enabled on some legacy architectures that still use a.out:

        default ALPHA || M68K || SPARC

so ...

Linus

author maintainer
#2 lore raw
Quoted 10 lines · Linus Torvalds
Quoted 6 lines · Christian Brauner

we've been carrying sysfs() around since forever and we marked the sysfs() system call as deprecated in 2018 iiuc.

Should we try and get rid of this odd system call or at least flip the config switch to default to N instead of Y?

We can certainly try. But I bet it's used somewhere. Deprecation warnings tend to mean nothing ;(

So let's try to decouple if from CONFIG_EXPERT and switch the default to N and see what happens.

Quoted 9 lines
Quoted 2 lines

(Another candidate that comes to mind is uselib().)

That one is already 'default n' since a few years ago, and only enabled on some legacy architectures that still use a.out:

        default ALPHA || M68K || SPARC

so ...

Ok, let's try and shed it.