Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 38) sorted by relevance

12

/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test-linkage.c14 __attribute__((constructor))
20 __attribute__((constructor))
H A Dnolibc-test.c691 __attribute__((constructor))
697 __attribute__((constructor))
740 CASE_TEST(constructor); EXPECT_EQ(is_nolibc, constructor_test_value, 0x3); break; in run_startup()
/linux/rust/pin-init/
H A DREADME.md63 To initialize a `struct` with an in-place constructor you will need two things:
64 - an in-place constructor,
68 To get an in-place constructor there are generally three options:
69 - directly creating an in-place constructor using the [`pin_init!`] macro,
70 - a custom function/macro returning an in-place constructor provided by someone else,
88 [structurally pinned fields]. After doing this, you can then create an in-place constructor via
/linux/tools/testing/selftests/
H A Dkselftest_harness.h197 static void __attribute__((constructor)) _register_##test_name(void) \
241 static void __attribute__((constructor)) \
367 static void __attribute__((constructor)) \
471 static void __attribute__((constructor(KSELFTEST_PRIO_TEST_F))) \
886 static void __attribute__((constructor(KSELFTEST_PRIO_XFAIL))) \
1317 static void __attribute__((constructor)) __constructor_order_first(void) in __constructor_order_first()
/linux/Documentation/livepatch/
H A Dshadow-vars.rst41 They also allow to call a custom constructor function when a non-zero
45 Note that the constructor is called under klp_shadow_lock spinlock. It allows
61 - initialize the variable using a custom constructor and data when provided
74 - initialize the variable using a custom constructor and data when provided
/linux/tools/testing/selftests/sched_ext/
H A Dscx_test.h76 __attribute__((constructor)) \
/linux/tools/testing/selftests/openat2/
H A Dhelpers.c96 void __attribute__((constructor)) init(void) in init()
/linux/Documentation/admin-guide/device-mapper/
H A Dwritecache.rst56 when this option is activated (either in the constructor
112 See above "cleaner" constructor documentation.
H A Dswitch.rst100 The region number (region size was specified in constructor parameters).
H A Ddm-raid.rst468 1.9.2 Don't emit '- -' on the status table line in case the constructor
470 'D' on the status line. If '- -' is passed into the constructor, emit
/linux/tools/testing/selftests/rseq/
H A Drseq.c203 static __attribute__((constructor))
/linux/include/net/
H A Dinet_frag.h110 void (*constructor)(struct inet_frag_queue *q, member
H A Dneighbour.h218 int (*constructor)(struct neighbour *); member
/linux/Documentation/bpf/
H A Dbpf_iterators.rst32 (constructor, next element fetch, destructor) and iterator-specific type
35 constructor/destructor/next APIs.
47 All kfuncs (constructor, next, destructor) have to be named consistently as
70 - constructor, `bpf_iter_<type>_new()`, always initializes iterator state on
71 the stack. If any of the input arguments are invalid, constructor should
85 constructor failed or next returned nothing. Destructor frees up any
91 applicable constructor/destructor/next are callable. I.e., verifier ensures
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcustom_sec_handlers.c59 __attribute__((constructor))
H A Dtask_local_data.h293 __attribute__((constructor)) \
/linux/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c42 static __attribute__((constructor)) void setup_buffer(void) in setup_buffer()
59 static __attribute__((constructor)) void setup_fault_injection(void) in setup_fault_injection()
/linux/Documentation/networking/
H A Dnetdevices.rst121 /* Implicit constructor */
131 /* End of constructor, set the destructor: */
157 There is no explicit constructor callback, driver "constructs" the private
/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb.c477 static void __attribute__((constructor)) ebb_init(void) in ebb_init()
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_rw.c485 void (*constructor)(struct svc_rdma_write_info *info, in svc_rdma_build_writes()
512 constructor(info, write_len, ctxt); in svc_rdma_build_writes()
/linux/net/ieee802154/6lowpan/
H A Dreassembly.c527 lowpan_frags.constructor = lowpan_frag_init; in lowpan_net_frag_init()
/linux/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c558 nf_frags.constructor = ip6frag_init; in nf_ct_frag6_init()
/linux/net/ipv6/
H A Dreassembly.c577 ip6_frags.constructor = ip6frag_init; in ipv6_frag_init()
/linux/tools/testing/selftests/net/
H A Dreuseport_bpf.c440 static __attribute__((constructor)) void main_ctor(void) in main_ctor()
/linux/net/ipv4/
H A Dinet_fragment.c370 f->constructor(q, arg); in inet_frag_alloc()

12