X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fsmfs%2Fdoc%2Fhld.lyx;h=254d05135151a108641b33ae57c8a16ed29ffbe7;hb=272294dfa235dac803ed2d2b2ee8e0bd402622bb;hp=75a5215a403e51c034339b38ec5f40fcc1af432c;hpb=2d0ca68b3adb4d00c8466707f6f572e237cdb64a;p=fs%2Flustre-release.git diff --git a/lustre/smfs/doc/hld.lyx b/lustre/smfs/doc/hld.lyx index 75a5215..254d051 100644 --- a/lustre/smfs/doc/hld.lyx +++ b/lustre/smfs/doc/hld.lyx @@ -753,6 +753,20 @@ int smfs_register_plugin (struct smfs_plugin *); SMFS will return 0 in case of successfull registration or error code otherwise. +\layout Subsubsection* + +Plugin deregistration +\layout Standard + +SMFS provide following method for deregistration: +\layout LyX-Code + +void * smfs_deregister_plugin (int type); +\layout Standard + +SMFS will return private plugin data from struct smfs_plugin in case of + successfull registration or NULL pointer otherwise. + \layout Paragraph* Plugins operation @@ -761,7 +775,7 @@ Plugins operation Plugin's hook function must have the same type: \layout LyX-Code -typedef int smfs_hook_func (int opcode, void * parameter); +typedef int (*smfs_plg_hook) (int opcode, void * parameter, void * plg_private); \layout Standard Parameter can contains: @@ -785,6 +799,13 @@ opcode - hook code handle - fsfilt transaction if exists \layout Standard + +\emph on +Plg_private +\emph default +is private plugin data. +\layout Standard + There are opcodes for now: \layout LyX-Code @@ -895,7 +916,7 @@ calculate size for transaction - if plugin will participate into transaction etc. \layout LyX-Code -smfs_helper(int code, void * parameter); +smfs_helper(int code, void * parameter, void * plg_private); \layout Standard Where