net: clean up empty lines in .c and .h files
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorpro
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
show more ...
Change the callout to supply -1 to indicate we are not changingCPU, also add protection against invalid CPU's as well assplit c_flags and c_iflags so that if a user plays with the activeflag (the
Change the callout to supply -1 to indicate we are not changingCPU, also add protection against invalid CPU's as well assplit c_flags and c_iflags so that if a user plays with the activeflag (the one expected to be played with by callers in MPSAFE) withouta lock, it won't adversely affect the callout system by causing a corruptlist. This also means that all callers need to use the macros and *not*play with the falgs directly (like netgraph used to).Differential Revision: htts://reviews.freebsd.org/D1894Reviewed by: .. timed out but looked at by jhb, imp, adrian hselasky tested by hiren and netflix.Sponsored by: Netflix Inc.
Mechanically remove the last stray remains of spl* calls from net*/*.They have been Noop's for a long time now.
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.This means that their use is restricted to a single C file.
Node constructor methods are supposed to be called in syscallcontext always. Convert nodes to consistently use M_WAITOK flagfor memory allocation.Reviewed by: julian
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.Fix some wrong usages.Note: this does not affect generated binaries as this argument is not used.PR: 137213Submitted by: Eygene Ryab
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.Fix some wrong usages.Note: this does not affect generated binaries as this argument is not used.PR: 137213Submitted by: Eygene Ryabinkin (initial version)MFC after: 1 month
Use proper form of gnu designated initalizers. This letsclang compile this files.Approved by: ed (mentor)Silence from: harti (maintainer?)
Add memmove() to the kernel, making the kernel compile with Clang.When copying big structures, LLVM generates calls to memmove(), becauseit may not be able to figure out whether structures overlap
Add memmove() to the kernel, making the kernel compile with Clang.When copying big structures, LLVM generates calls to memmove(), becauseit may not be able to figure out whether structures overlap. This causedlinker errors to occur. memmove() is now implemented using bcopy().Ideally it would be the other way around, but that can be solved in thefuture. On ARM we don't do add anything, because it already hasmemmove().Discussed on: arch@Reviewed by: rdivacky
Replace the array initialization using the gcc-specific format[constant] valuewith the C99 format[constant] = value
Normalize a significant number of kernel malloc type names:- Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat.- Remove punctuation that i
Normalize a significant number of kernel malloc type names:- Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat.- Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters.- Disambiguate some collisions by adding subsystem prefixes to some memory types.- Generally prefer lower case to upper case.- If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases.Not all instances were caught in this change, so more work is required tofinish this conversion. Similar changes are required for UMA zone names.
Use the ISO standard function variable vs. a GCC'ism.
/* -> /*- for license, minor formatting changes
Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.This is done to keep both versions in RELENG_5 and support both APIs.Reviewed by: scottlApproved by: julian (mentor),
Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.This is done to keep both versions in RELENG_5 and support both APIs.Reviewed by: scottlApproved by: julian (mentor), implicitly
Adapt to the new ng_timeout/ng_untimeout arguments. These now usethe callout instead of the timeout interface.Submitted by: glebius
Convert Netgraph to use mbuf tags to pass its meta information around.Thanks to Sam for importing tags in a way that allowed this to be done.Submitted by: Gleb Smirnoff <[email protected]>Also
Convert Netgraph to use mbuf tags to pass its meta information around.Thanks to Sam for importing tags in a way that allowed this to be done.Submitted by: Gleb Smirnoff <[email protected]>Also allow the sr and ar drivers to create netgraph versions of their modules.Document the change to the ksocket node.
Switch to using C99 sparse initialisers for the type methods array.Should make no binary difference.Submitted by: Gleb Smirnoff <[email protected]>Reviewed by: Harti Brandt <[email protected]>
Switch to using C99 sparse initialisers for the type methods array.Should make no binary difference.Submitted by: Gleb Smirnoff <[email protected]>Reviewed by: Harti Brandt <[email protected]>MFC after: 1 week
Pass MTX_DEF instead of 0 as the last argument to mtx_init().Submitted by: Gavin Atkinson <[email protected]>
The layer 3 (signalling) of NgATM netgraph node: ng_uni. This nodehandles user and network side signaling and partly PNNI.