Page MenuHomeFreeBSD

linuxkpi: Add sort function
AbandonedPublic

Authored by manu on Dec 17 2020, 3:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 21, 5:29 AM
Unknown Object (File)
Feb 8 2025, 11:33 PM
Unknown Object (File)
Feb 4 2025, 10:48 AM
Unknown Object (File)
Jan 25 2025, 8:46 AM
Unknown Object (File)
Jan 18 2025, 5:27 PM
Unknown Object (File)
Dec 5 2024, 1:09 AM
Unknown Object (File)
Nov 20 2024, 9:35 AM
Unknown Object (File)
Nov 16 2024, 7:32 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