- # igb_avb patch for Realtime systems which require Priority inheritence
- # based on https://github.com/Avnu/igb_avb.git
- diff --git a/lib/igb.c b/lib/igb.c
- index 00a3560..4a79e98 100644
- --- a/lib/igb.c
- +++ b/lib/igb.c
- @@ -2562,6 +2562,14 @@ static int igb_create_lock(struct adapter *adapter)
- attr_allocated = true;
- +#if ((_POSIX_THREAD_ROBUST_PRIO_INHERIT-0) < 200809L)
- +/* Protect against libc implementations which do not support this */
- +#error Priority inheritence not supported for robust mutexes with this pthread implementation
- +#endif
- + // to be used for both inter-process and inter-thread synchronization
- + if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT) != 0)
- + goto err;
- +
- // to be used for both inter-process and inter-thread synchronization
- if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED) != 0)
- goto err;
igb_avb: patch for Realtime systems which require Priority inheritence
Posted by Anonymous on Thu 12th Oct 2023 10:33
raw | new post
view followups (newest first): igb_avb: patch for Realtime systems which require Priority inheritence by Anonymous
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.