Page MenuHomeFreeBSD

linuxkpi: Add sort function
AbandonedPublic

Authored by manu on Dec 17 2020, 3:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 7:32 AM
Unknown Object (File)
Tue, Oct 22, 7:46 AM
Unknown Object (File)
Oct 3 2024, 6:29 AM
Unknown Object (File)
Sep 17 2024, 2:48 PM
Unknown Object (File)
Dec 20 2023, 7:36 AM
Unknown Object (File)
Dec 12 2023, 4:29 PM
Unknown Object (File)
May 14 2023, 7:02 PM
Unknown Object (File)
Apr 26 2023, 4:02 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

Add sort function.
Obtain from drmkpi/drm2

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

manu requested review of this revision.Dec 17 2020, 3:36 PM

Can we not use qsort from libkern?

sys/compat/linuxkpi/common/src/linux_sort.c
13

Can use 3. here. If this is modified from a userland copy we could update it to 3. also.

Can we not use qsort from libkern?

qsort have it's own swap function and cannot be defined, but I guess I can make a new one in libkern that can use a defined swap func.

sys/compat/linuxkpi/common/src/linux_sort.c
13

I need to see from where it really was copied from but yeah something is weird here.

manu added a subscriber: wulf.

@wulf commited a different version in 7356f661e81d1ff88bdb4daa127f3bfa2be7ecb9