Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test-linkage.c14 __attribute__((constructor))
20 __attribute__((constructor))
H A Dnolibc-test.c69 /* will be used by constructor tests */
699 __attribute__((constructor)) in constructor2()
705 __attribute__((constructor)) in run_startup()
780 CASE_TEST(constructor); EXPECT_EQ(is_nolibc, constructor_test_value, 0x3); break; in test_dirent()
/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(KSELFTEST_PRIO_TEST))) _register_##test_name(void) \
241 static void __attribute__((constructor(KSELFTEST_PRIO_TEST))) \
367 static void __attribute__((constructor(KSELFTEST_PRIO_TEST))) \
471 static void __attribute__((constructor(KSELFTEST_PRIO_TEST))) \
886 static void __attribute__((constructor(KSELFTEST_PRIO_XFAIL))) \
1326 static void __attribute__((constructor(KSELFTEST_PRIO_TEST))) __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).
/linux/include/net/
H A Dinet_frag.h110 void (*constructor)(struct inet_frag_queue *q, member
/linux/tools/testing/selftests/rseq/
H A Drseq.c200 static __attribute__((constructor))
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcustom_sec_handlers.c59 __attribute__((constructor))
H A Dtask_local_data.h296 __attribute__((constructor(101))) \
/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/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.c487 void (*constructor)(struct svc_rdma_write_info *info, in svc_rdma_build_writes()
514 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/tools/testing/selftests/net/
H A Dreuseport_bpf.c441 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()
H A Dip_fragment.c743 ip4_frags.constructor = ip4_frag_init; in ipfrag_init()
H A Darp.c158 .constructor = arp_constructor,
/linux/Documentation/sound/kernel-api/
H A Dwriting-an-alsa-driver.rst248 /* chip-specific constructor
290 /* constructor -- see "Driver Constructor" sub-section */
353 The real constructor of PCI drivers is the ``probe`` callback. The
578 :c:func:`snd_device_new()` inside its constructor. The destructor
697 In this section, we'll complete the chip-specific constructor,
725 /* chip-specific constructor */
1336 function. It would be better to create a constructor for the PCM, namely::
3236 one is a constructor for the ``opl3_t`` instance::
3556 ``SNDRV_DMA_TYPE_DEV_SG`` in the PCM constructor like for other PCI
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-slab139 constructor function, which is invoked for each object when a
/linux/samples/bpf/
H A Dxdp_sample_user.c1665 __attribute__((constructor)) static void sample_ctor(void) in sample_ctor()

12