aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2023-01-24 12:41:00 +0400
committerAnastasia Klimchuk <aklm@chromium.org>2023-02-20 08:28:07 +0000
commit248fa24490df1942c83823483f75b762406c6bb7 (patch)
tree35c86746f151e8163f516b99d16636bb77719ec4 /meson.build
parent57b3be8839b02d6d8d1c9d10d9fbb5cf2d946d6f (diff)
downloadflashrom-248fa24490df1942c83823483f75b762406c6bb7.tar.gz
flashrom-248fa24490df1942c83823483f75b762406c6bb7.tar.bz2
flashrom-248fa24490df1942c83823483f75b762406c6bb7.zip
dummyflasher: use new API to register shutdown function
This allows masters to register shutdown function in *_master struct, which means there is no need to call register_shutdown in init function, since this call is now a part of register_*_master. A dummy programmer can register masters for multiple buses that share a programmer's data (a pointer to struct emu_data) with each other. To avoid unexpected memory freeing by shutdown function, we need to keep track of how many buses are using the shared resource. Use the reference counting technique to achieve this. TEST=ninja test Change-Id: I0c67c25b0f53cd8c564c4ea0f09f2728e856f6ea Signed-off-by: Alexander Goncharov <chat@joursoir.net> Ticket: https://ticket.coreboot.org/issues/391 Reviewed-on: https://review.coreboot.org/c/flashrom/+/72408 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions