Commit 5c9fc74
committed
rtapi: explain why realtime scheduling is unavailable
The fallback-to-POSIX warning said only "SCHED_FIFO not permitted"
which left users guessing among missing caps, stock kernel, or
rlimits. Now print the sched_setscheduler errno, the effective
cap_sys_nice and cap_ipc_lock state via libcap, and mention
LINUXCNC_FORCE_REALTIME as a testing-only override. Addresses the
diagnostic-output request in issue #3928.
While here, switch detect_preempt_rt and has_setuid_root from
__attribute__((unused)) to static inline so the unused-function
suppression matches the wider codebase style.1 parent f7dcb46 commit 5c9fc74
3 files changed
Lines changed: 60 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
| 362 | + | |
366 | 363 | | |
367 | 364 | | |
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | 368 | | |
372 | | - | |
373 | | - | |
| 369 | + | |
374 | 370 | | |
375 | 371 | | |
376 | 372 | | |
| |||
382 | 378 | | |
383 | 379 | | |
384 | 380 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 381 | + | |
390 | 382 | | |
391 | 383 | | |
392 | 384 | | |
| |||
427 | 419 | | |
428 | 420 | | |
429 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
430 | 427 | | |
431 | 428 | | |
432 | 429 | | |
| |||
436 | 433 | | |
437 | 434 | | |
438 | 435 | | |
439 | | - | |
440 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
441 | 444 | | |
442 | 445 | | |
443 | 446 | | |
444 | | - | |
| 447 | + | |
| 448 | + | |
445 | 449 | | |
| 450 | + | |
446 | 451 | | |
447 | 452 | | |
448 | 453 | | |
449 | 454 | | |
| 455 | + | |
450 | 456 | | |
451 | 457 | | |
452 | 458 | | |
| 459 | + | |
| 460 | + | |
453 | 461 | | |
454 | 462 | | |
455 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
974 | 975 | | |
975 | 976 | | |
976 | 977 | | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
977 | 989 | | |
978 | 990 | | |
979 | 991 | | |
980 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
981 | 1006 | | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
986 | 1019 | | |
987 | 1020 | | |
988 | 1021 | | |
| |||
0 commit comments