On 7 Jan 2023, at 11:43, Greg KH wrote: > On Sat, Jan 07, 2023 at 11:36:27AM +0100, Finn Behrens wrote: >> Hi, >> >> I’v started to implement the proc filesystem abstractions in rust, as >> I want to use it for a driver written in rust. Currently this requires >> some rust code that is only in the rust branch, so does not apply onto >> 6.2-rc2. > > Please no, no new driver should ever be using /proc at all. Please > stick with the sysfs api which is what a driver should always be using > instead. Oh did not know that, only translated a C driver from my work to rust, and there procfs was used. But okay, will change it to sysfs. > > /proc is for processes, not devices or drivers at all. We learned from > our mistakes 2 decades ago, please do not forget the lessons of the > past. > > thanks, > > greg k-h