nami
polyduekes
polyduekes
and linuxkpi is far from complete, that causes freebsd specific bugs and missing features due to it being incomplete, and completing it is a very hard task compared to just writing native drivers because linuxkpi is derived from gpl code, which forces freebsd devs to use manuals as the only source to make it possible
you can read the wiki to know more
https://wiki.freebsd.org/LinuxKPI
B
polyduekes
NDISwrapper, NDISulator ...
it's a separate software written by separate people, it's not officially part of linux kernel, but these drivers are common laptop hardware drivers, like wifi ones which are going to be officially used in freebsd
polyduekes
if you need network on linux you don't by default use NDISwrapper, but for those who will need those specific wifi drivers on freebsd will need linuxkpi
Artel
Artel
no performance penalty
Artel
actually linuxkpi is the best strategy.
getting all the linux fruits without linux annoyances
polyduekes
no performance penalty
read the wiki page of linuxkpi, and you will see the penalties on your own and there is translation
polyduekes
polyduekes
linux -> freebsd translation, its written clearly in wiki
Artel
Artel
sir there is no translation, but rather a porting layer on source code level
check it out for yourself
https://github.com/freebsd/freebsd-src/blob/main/sys/compat/linuxkpi/common/src/linux_usb.c
come and see
polyduekes
misinformation
i would trust the wiki more then the words of a random person on tg
B
The drm drivers with the LinuxKAPI are still couple of years behind imagine if it was a "Native" implementation .
Artel
polyduekes
B
Translation does not mean what you think here .
Artel
its the same deal as it was with solaris porting layer in openzfs early days
polyduekes
Artel
translation means translation, wdym?
wine -> translating ABI userland calls / syscalls
linuxulator -> translating ABI syscalls
linuxkpi -> translating (but I would rather say wrapping) API on source code level, once. then linux driver built as module and access functions in freebsd kernel directly
Artel
there is no runtime computational translation involved in linuxkpi
polyduekes
Artel
to simplify its like you
have certain linux driver that expects certain linux functions and therefore linux behavior, for example pci_get_class
freebsd has similar function named pci_find_class_from
the linuxkpi code bridges two functions together, shuffling stuff a little
Artel
dont interpret words too literally
Artel
in BSD UNIX you must see the grand vision, not just stick to words
polyduekes
there is no sticking to words here but rather sticking to what is shown, and i am not retarded enough to spend my days digging unto the linuxkpi source to prove what is already proven in the wiki
Artel
polyduekes
polyduekes
i didn't called anyone else anything
polyduekes
https://cdaemon.com/posts/pwS7dVqV
even cdaemon says there exists freebsd specific bugs, performance hits because of linuxkpi
polyduekes
i really have no reason to show anything and prove what is already proven
Artel
Artel
also this discussion is one big nothing burger. linuxkpi just works and freebsd is best bsd
Emp. Jasmine
linuxkpi sounds really useful. If this goes well and becomes sound I might just have to consider FreeBSD for my daily driver
Artel
Artel
getting both linux drivers work and getting rid of linuxkpi means transforming freebsd kernel info 1:1 linux kernel, which is not good and more over impossible in terms of work volume
polyduekes
i don't need to answer your meaningless questions, the discussion was about linuxkpi issues and many trustable sources say they exists
B
I've been using drm forever and there was exactly 0 issues .
polyduekes
Artel
B
B
polyduekes
thats literally purpose of linuxkpi
buddy, native freebsd drivers never had "linux" in their names, native drivers would just work with the native kernel, but there is a general linuxkpi driver needed to make other linuxkpi drivers work
Artel
bruh
Artel
you just googling random linuxkpi results?
Artel
>https://forums.freebsd.org/threads/mounting-erofs-images-in-freebsd.97006/post-692058
>The fuse porting sounds more promising.
fuse has nothing to do with kernel
B
polyduekes
B
Maybe actually read it ?
B
He says a fuse driver would be easier, not a native in kernel one !
B
There is the licensing issue too .
B
Artel
ok polyduekes, whats your goal with this discussion? if you are not volunteering for source code contributions then its meaningless
B
Fuse drivers run as a process .
B
Artel
userland driver is not kernel driver
Artel
linuxkpi is kernel thing.
the forum topic about erofs was mentioning linux erofs kernel driver, and OP asked was it more viable to do port via linuxkpi into freebsd kernel
where responder said its better to port fuse-erofs userland from linux to freebsd
Artel
polyduekes
B
By reading your forum post I see that you are mixing stuff together .
polyduekes
native drivers better
polyduekes
what is the community for? you think vendors made all the drivers for openbsd and linux?
polyduekes
oh, you just deleted, nvm then
B
Fuse drivers != Native in kernel drivers
LinuxKAPI != Linuxulator
Fuse driver == A userland process
Native driver == Runs Inside the kernel space
B
polyduekes
linuxkpi drivers != native drivers