SHARE
TWEET

Untitled

a guest Aug 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  69 #define ROOT_ATTR(name, mode, show, store) \
  2.  70 static struct btrfs_root_attr btrfs_root_attr_##name = __ATTR(name, mode, \
  3.  71                                                               show, store)
  4.  72
  5.  73 ROOT_ATTR(blocks_used,  0444,   root_blocks_used_show,  NULL);
  6.  74 ROOT_ATTR(block_limit,  0644,   root_block_limit_show,  NULL);
  7.  
  8. ---
  9. @ r_param exists @
  10. identifier virtual.ID;
  11. identifier FUNC;
  12. expression E;
  13. position P;
  14. @@
  15. (
  16.   E = FUNC(..., ID@P, ...)
  17. |
  18.   FUNC(..., ID@P, ...)
  19. )
  20.  
  21. @ script:python @
  22. id << virtual.ID;
  23. p << r_param.P;
  24. @@
  25. print "ADDROF_PARAM %s %s" %(p[0].line, id)
RAW Paste Data
Top