mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-11 10:07:05 +00:00
m1n1.fw.agx.channels: Add meta_fn arg to get_message()
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
8df6f6d060
commit
7fb99adf10
1 changed files with 2 additions and 1 deletions
|
@ -291,12 +291,13 @@ class Channel(Reloadable):
|
|||
self.rb_maps.append(m)
|
||||
p += size * count
|
||||
|
||||
def get_message(self, ring, index):
|
||||
def get_message(self, ring, index, meta_fn=None):
|
||||
msgcls, size, count = self.ring_defs[ring]
|
||||
|
||||
assert index < count
|
||||
addr = self.rb_base[ring] + index * size
|
||||
stream = self.uat.iostream(0, addr)
|
||||
stream.meta_fn = meta_fn
|
||||
return msgcls.parse_stream(stream)
|
||||
|
||||
def clear_message(self, ring, index):
|
||||
|
|
Loading…
Reference in a new issue