A basic doubt about shader

Dear openGLProgrammers,

I want to pass an array(float kernel[9]) to my fragment shader. How do it using glUniform command.

Thanks in advance

// In shader

uniform float kernel[ 9 ] ;

// In program

GLfloat values[9] ;
GLint location = glGetUniformLocation( program_handle, "kernel" ) ;
glUniform1fv( location, values, 9 ) ;

Thanks a lot