This allows to remove one M_NOWAIT allocation and also makes it
more clear what's going on.
Details
Details
- Reviewers
markj - Group Reviewers
network transport - Commits
- rG5dc8dd5f3ac5: unix/dgram: inline sbappendaddr_locked() into uipc_sosend_dgram()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/uipc_usrreq.c | ||
---|---|---|
1169 | Why NOWAIT? |
sys/kern/uipc_usrreq.c | ||
---|---|---|
1169 | Because in most cases a kernel thread can't sleep here. |
sys/kern/uipc_usrreq.c | ||
---|---|---|
1187 | I would assert from->sa_len <= MLEN here. Should be ok because sizeof(struct sockaddr_un) is smaller than MLEN, but that could be false in some exotic situations. (Sometimes one adds extra fields to struct mbuf for debugging purposes.) |