Page MenuHomeFreeBSD

linuxkpi: Add sort function
AbandonedPublic

Authored by manu on Dec 17 2020, 3:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 8:11 PM
Unknown Object (File)
Mon, Apr 21, 7:11 PM
Unknown Object (File)
Mon, Apr 21, 7:05 PM
Unknown Object (File)
Mon, Apr 21, 7:05 PM
Unknown Object (File)
Mon, Apr 21, 6:48 PM
Unknown Object (File)
Mar 21 2025, 5:29 AM
Unknown Object (File)
Feb 8 2025, 11:33 PM
Unknown Object (File)
Feb 4 2025, 10:48 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