Re: CVS commit: src/sys/dev/wscons

2025-03-23 Thread Greg Troxel
"Hans Rosenfeld" writes: > Module Name: src > Committed By: hans > Date: Sun Mar 23 12:19:32 UTC 2025 > > Modified Files: > src/sys/dev/wscons: wsmouse.c > > Log Message: > wsmouse(4): fix bogus DIAGNOSTIC checks > > Similar to wskbd(4), these checks should be done always, and the

Re: library in kernel space

2025-03-23 Thread Paul Goyette
On Sun, 23 Mar 2025, Peter Skvarka wrote: You can only load other kernel modules from a kernel module (or the main kernel). In this case when I have two modules where module_1 needs exported functions from module_2. Module_2 must be loaded first (i.e. with modload from shell) and after it

Re: library in kernel space

2025-03-23 Thread Mouse
> Ok, my problem is now different than I described: > module_1 and module_2 (dependency is that module_1 needs module_2) > used some shared source files with functions. > [...] modload ./module_2.kmod and then modload ./module_1.kmod [...] > ...kobj_checksyms, 1036: [./module_1.kmod]: linker erro

Re: library in kernel space

2025-03-23 Thread Paul Goyette
On Sun, 23 Mar 2025, Peter Skvarka wrote: it complains: ...kobj_checksyms, 1036: [./module_1.kmod]: linker error: global symbol `MyFunctionName' redefined Are names from all text sections put into global namespace ? Yes How to resolve it properly ? Make a 3rd module with the shared/com

Inquiry about Auto Create Swap on Memory Pressure project

2025-03-23 Thread Prashast Saxena
Dear Mentor, I hope you are doing well. My name is Prashast Saxena, and I am interested in contributing to the "*Auto Create Swap on Memory Pressure*" project for NetBSD. This feature will significantly enhance NetBSD’s memory management by dynamically allocating and removing swap space based on s